Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sometimes, we ignore a parameter to stick to a common interface
[simgrid.git] / acmacro / compiler-flags.m4
index c9d6169..9910dfd 100644 (file)
@@ -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