# HG changeset patch # User cehoyos # Date 1181341370 0 # Node ID 51fa332d324da39124333cc3cccd8a68983cb79b # Parent eb6c0ac5cccf6fe0222abd6be9d45e9459d64a46 Simplify addition of -Wdeclaration-after-statement to CFLAGS. diff -r eb6c0ac5cccf -r 51fa332d324d configure --- a/configure Fri Jun 08 22:04:09 2007 +0000 +++ b/configure Fri Jun 08 22:22:50 2007 +0000 @@ -7395,9 +7395,7 @@ 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 -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS" cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS" fi