From: mquinson Date: Fri, 1 Jul 2005 13:55:41 +0000 (+0000) Subject: -Wformat=2 chokes on the snprintf replacement because the format is passed to real... X-Git-Tag: v3.3~3842 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3c7c1bee392df1564c9fdff7c278429f3c2fbd0f -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf; -Wshadow chokes on try{ try{} } constructs git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1514 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/acmacro/compiler-flags.m4 b/acmacro/compiler-flags.m4 index 951c59695f..f6f962adab 100644 --- a/acmacro/compiler-flags.m4 +++ b/acmacro/compiler-flags.m4 @@ -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