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.
This commit is contained in:
Ben Pfaff committed 2008-09-04 13:53:26 -07:00
1 parent 5549180a54
commit ad8d3e6bdf
1 file changed
+1 -1
+1 -1
View 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