changeset 23503:51fa332d324d

Simplify addition of -Wdeclaration-after-statement to CFLAGS.
author cehoyos
date Fri, 08 Jun 2007 22:22:50 +0000
parents eb6c0ac5cccf
children 22395c2c4991
files configure
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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