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 483bd5d29eb7fd8716ca820f825a0c851b8fa8c1..ca1ca5153e751d0635adffa349ffd2462e3895e6 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