Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
-Wformat=2 chokes on the snprintf replacement because the format is passed to real...
[simgrid.git] / 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