]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added -Wformat-nonliteral.
authorBart Van Assche <bvanassche@acm.org>
Sat, 5 Jul 2008 16:22:36 +0000 (16:22 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 5 Jul 2008 16:22:36 +0000 (16:22 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8366

drd/Makefile.am
drd/drd_main.c

index 20a76656c777ddb18226743b2ebb2a573e7264a0..665e0c89003b66b8ec8ba621cac9d8eb3a71fed2 100644 (file)
@@ -28,7 +28,7 @@ VGPRELOAD_DRD_SOURCES_COMMON = drd_strmem_intercepts.c drd_pthread_intercepts.c
 endif
 
 DRD_CFLAGS=@FLAG_W_EXTRA@ @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@ \
-           -Wno-inline -Wno-unused-parameter \
+           -Wformat-nonliteral -Wno-inline -Wno-unused-parameter \
            -O2 -DCHECK_FORMAT_STRINGS
 
 AM_CFLAGS_X86_LINUX   += $(DRD_CFLAGS)
index bc25ddb14bb0556fed691e7e1b2ab8aef3891f18..3f9ff305b26ca31217a23e2778b896590d5e7fad 100644 (file)
@@ -666,7 +666,7 @@ void drd_post_thread_join(DrdThreadId drd_joiner, DrdThreadId drd_joinee)
       vc_snprint(msg + VG_(strlen)(msg), msg_size - VG_(strlen)(msg),
                  thread_get_vc(drd_joiner));
     }
-    VG_(message)(Vg_DebugMsg, msg);
+    VG_(message)(Vg_DebugMsg, "%s", msg);
     VG_(free)(msg);
   }