X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ddf7309924c2ae8349e121b3d0fe9d05f26d40c2..3bca62de44f96973b3bccfa7eaee31b0a7fa4b34:/acmacro/compiler-flags.m4 diff --git a/acmacro/compiler-flags.m4 b/acmacro/compiler-flags.m4 index c9d6169762..9910dfdf11 100644 --- a/acmacro/compiler-flags.m4 +++ b/acmacro/compiler-flags.m4 @@ -52,7 +52,7 @@ AC_DEFUN([SG_COMPILE_FLAGS],[ ## -Wshadow chokes on try{ try{} } constructs warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \ -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \ - -Wno-unused-function -Wno-strict-aliasing -Wno-format-nonliteral \ + -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wno-format-nonliteral \ -Werror \ | sed 's/ +/ /g'` # -Wno-unused-variable -Wno-unused-label @@ -91,6 +91,8 @@ AC_DEFUN([SG_COMPILE_FLAGS],[ if test "x$cflags_set" != "xyes" ; then CFLAGS="$optCFLAGS $CFLAGS" fi + else + CFLAGS="$CFLAGS -O0" fi if test x$lt_cv_prog_gnu_ld = xyes ; then