configs: Warn about pointer arithmetic.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Nov 2009 16:01:11 +0000 (16:01 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Nov 2009 17:06:12 +0000 (17:06 +0000)
It's not portable. Warn to help catching it early.

configs/linux

index 73a6b61b2f603f299b3eeb652358196561ae417b..c60f0d8ac3b3db496a20bdee2d83b151191449f8 100644 (file)
@@ -23,11 +23,11 @@ DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
 X11_INCLUDES = -I/usr/X11R6/include
 
 CFLAGS = -Wall -Wmissing-prototypes -Wdeclaration-after-statement \
-       $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
-       $(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math 
+       -Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
+       $(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
 
-CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
-       $(X11_INCLUDES) 
+CXXFLAGS = -Wall -Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
+       $(DEFINES) $(X11_INCLUDES)
 
 # Work around aliasing bugs - developers should comment this out
 CFLAGS += -fno-strict-aliasing