Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
-Wformat=2 chokes on the snprintf replacement because the format is passed to real...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 1 Jul 2005 13:55:41 +0000 (13:55 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 1 Jul 2005 13:55:41 +0000 (13:55 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1514 48e7efb5-ca39-0410-a469-dd3cf9ba447f

acmacro/compiler-flags.m4

index 951c596..f6f962a 100644 (file)
@@ -44,9 +44,11 @@ AC_DEFUN([SG_COMPILE_FLAGS],[
       ## with individual -Wno-xxx flags, unlike -Wall
       if test "x$enable_compile_warnings" = "xyes"; then
         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
-        -Wshadow -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings \
+        -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
        -Wno-unused-variable -Wno-unused-function -Wno-unused-label \
         -Werror \
+      ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
+      ## -Wshadow chokes on try{ try{} } constructs
        | sed 's/ +/ /g'`
       fi
     fi