From a6198be5d05d195a7393b33a1df70dbf156c37c5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 15 Sep 2008 16:43:40 -0700 Subject: [PATCH] Add -Wdeclaration-after-statement to CFLAGS. This should help us avoid writing non-portable code. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1505c6bb..e7bbc3b8 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- 2.30.2