]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid compiler warnings.
authorNicholas Nethercote <njn@valgrind.org>
Sun, 8 May 2005 02:06:33 +0000 (02:06 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sun, 8 May 2005 02:06:33 +0000 (02:06 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3631

coregrind/vg_main.c

index 897debf431b0c017b59f6320c3a22991808df04b..fdb3b45edd5f21c09330aba424f76893f472100f 100644 (file)
@@ -2175,7 +2175,7 @@ static void build_valgrind_map_callback ( Addr start, SizeT size, UInt prot,
    if (start >= VG_(client_end) && start < VG_(valgrind_last)) {
       VG_(debugLog)(2, "main",
                     "valgrind-seg: %p-%p prot 0x%x file=%s\n",
-                    start, start+size, prot, filename);
+                    (void*)start, (void*)(start+size), prot, filename);
       VG_(map_file_segment)(start, size, prot,
                             SF_MMAP|SF_NOSYMS|SF_VALGRIND,
                             dev, ino, foffset, filename);
@@ -2211,7 +2211,8 @@ static void build_segment_map_callback ( Addr start, SizeT size, UInt prot,
 
    VG_(debugLog)(2, "main",
                  "any-seg: %p-%p prot 0x%x stack=%d file=%s\n",
-                 start, start+size, prot, is_stack_segment, filename);
+                 (void*)start, (void*)(start+size), prot, is_stack_segment, 
+                 filename);
 
    if (is_stack_segment)
       flags = SF_STACK | SF_GROWDOWN;