diff configure @ 23483:04cb37f259e7

Add -Wpointer-arith, -Wredundant-decls and -Wdisabled-optimization to CFLAGS.
author cehoyos
date Thu, 07 Jun 2007 23:59:23 +0000
parents 37ca31c6a615
children aeeb6df0c995
line wrap: on
line diff
--- a/configure	Thu Jun 07 22:45:41 2007 +0000
+++ b/configure	Thu Jun 07 23:59:23 2007 +0000
@@ -2251,7 +2251,7 @@
   elif test "$cc_vendor" != "gnu" ; then
     CFLAGS="-O2 $_march $_mcpu $_pipe"
   else
-    CFLAGS="-Wall -Wno-switch -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
+    CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
   fi
 else
   _warn_CFLAGS=yes
@@ -7398,6 +7398,7 @@
   CFLAGS="-Wdeclaration-after-statement $CFLAGS"
 fi
 cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS"
+cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"
 
 
 #this must be the last test to be performed or the ones following it will likely fail