git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1514
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
## 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