From: Ben Pfaff Date: Thu, 4 Sep 2008 17:42:04 +0000 (-0700) Subject: Add -Wpointer-arith to compiler flags. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad8d3e6bdf9c2f962d698e6836ae9bc69bd464cc;p=openvswitch Add -Wpointer-arith to compiler flags. This should help us to avoid doing pointer arithmetic on void * pointers, which is a GCC extension that other compilers do not support. --- diff --git a/configure.ac b/configure.ac index 1505c6bb..570c7de0 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" OFP_ENABLE_EXT