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:
1 parent
5549180a54
commit
ad8d3e6bdf
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user