From ad8d3e6bdf9c2f962d698e6836ae9bc69bd464cc Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 4 Sep 2008 10:42:04 -0700 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2