]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove second definition of typedef ‘Time’
authorPetar Jovanovic <mips32r2@gmail.com>
Mon, 5 Dec 2016 16:54:06 +0000 (16:54 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Mon, 5 Dec 2016 16:54:06 +0000 (16:54 +0000)
Remove redefinition of typedef ‘Time’ already defined in pub_tool_xtree.h

This fixes warning/error:

ms_main.c:633:14: warning: redefinition of typedef ‘Time’ [-Wpedantic]
 typedef Long Time;

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16174

massif/ms_main.c

index 2010f784a095d40f6bcca9b749b1c1c9aa98269d..cda46352655c3a35fce980083379e40e30c20d0b 100644 (file)
@@ -627,11 +627,6 @@ static void sub_heap_xt(Xecu where, SizeT req_szB, Bool exclude_first_entry)
 // limit again, we again cull and then take them even more slowly, and so
 // on.
 
-// Time is measured either in i or ms or bytes, depending on the --time-unit
-// option.  It's a Long because it can exceed 32-bits reasonably easily, and
-// because we need to allow negative values to represent unset times.
-typedef Long Time;
-
 #define UNUSED_SNAPSHOT_TIME  -333  // A conspicuous negative number.
 
 typedef