Add -Wdeclaration-after-statement to CFLAGS.
authorBen Pfaff <blp@nicira.com>
Mon, 15 Sep 2008 23:43:40 +0000 (16:43 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 15 Sep 2008 23:43:40 +0000 (16:43 -0700)
This should help us avoid writing non-portable code.

configure.ac

index 1505c6bbd4a9e2b7569e145e8e1eb21c8449deb3..e7bbc3b864a69515b041c879e01da9ad4f322a83 100644 (file)
@@ -57,7 +57,7 @@ AC_SUBST(KARCH)
 OFP_CHECK_LINUX(l26, 2.6, 2.6, KSRC26, L26_ENABLED)
 OFP_CHECK_LINUX(l24, 2.4, 2.4, KSRC24, L24_ENABLED)
 
-CFLAGS="$CFLAGS -Wall -Wno-sign-compare"
+CFLAGS="$CFLAGS -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement"
 
 OFP_ENABLE_EXT