# HG changeset patch # User cehoyos # Date 1181290614 0 # Node ID 72db608dc10a8cdf0df869c4973b7aebb24541de # Parent aeeb6df0c9958b6cb0fc9934f4ee6a636c4e2846 Add -Wdeclaration-after-statement etc. only to gcc. diff -r aeeb6df0c995 -r 72db608dc10a configure --- a/configure Fri Jun 08 08:14:31 2007 +0000 +++ b/configure Fri Jun 08 08:16:54 2007 +0000 @@ -7394,11 +7394,13 @@ cat > $TMPC << EOF int main() { return 0; } EOF +if test "$cc_vendor" = "gnu" ; then if cc_check -Wdeclaration-after-statement ; then CFLAGS="-Wdeclaration-after-statement $CFLAGS" fi cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS" +fi #this must be the last test to be performed or the ones following it will likely fail