scons: Promote pointer arithmetic to error.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Nov 2009 16:01:36 +0000 (16:01 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Nov 2009 17:06:12 +0000 (17:06 +0000)
All code covered by scons is being built on multiple OSes, so pointer
arithmetic must really be addressed when spotted.

scons/gallium.py

index 483bd5d..ca1ca51 100644 (file)
@@ -366,7 +366,7 @@ def generate(env):
         ccflags += [
             '-Wall',
             '-Wmissing-field-initializers',
-            '-Wpointer-arith',
+            '-Werror=pointer-arith',
             '-Wno-long-long',
             '-ffast-math',
             '-fmessage-length=0', # be nice to Eclipse