# HG changeset patch # User cehoyos # Date 1181260763 0 # Node ID 04cb37f259e799ecad3aca40c58e43a97e76ffda # Parent 3106b3d65f17533fe8278f9778d9b9b50b770191 Add -Wpointer-arith, -Wredundant-decls and -Wdisabled-optimization to CFLAGS. diff -r 3106b3d65f17 -r 04cb37f259e7 configure --- 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