diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-11-27 16:01:11 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-11-27 17:06:12 +0000 |
commit | 5976d8e6f1b12e9ac13a8d09aa9723f971f38a92 (patch) | |
tree | e4aea6200e9259c7503491d9457f62df829bba11 /configs | |
parent | f62f976e3ff9ff83d760e706c615e098d131e103 (diff) |
configs: Warn about pointer arithmetic.
It's not portable. Warn to help catching it early.
Diffstat (limited to 'configs')
-rw-r--r-- | configs/linux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configs/linux b/configs/linux index 73a6b61b2f..c60f0d8ac3 100644 --- a/configs/linux +++ b/configs/linux @@ -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 |