Add -Wpointer-arith to compiler flags.
authorBen Pfaff <blp@nicira.com>
Thu, 4 Sep 2008 17:42:04 +0000 (10:42 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 4 Sep 2008 20:53:26 +0000 (13:53 -0700)
This should help us to avoid doing pointer arithmetic on void * pointers,
which is a GCC extension that other compilers do not support.

configure.ac

index 1505c6b..570c7de 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"
 
 OFP_ENABLE_EXT