summaryrefslogtreecommitdiff
path: root/scons/gallium.py
diff options
context:
space:
mode:
Diffstat (limited to 'scons/gallium.py')
-rw-r--r--scons/gallium.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 31236c4b01..ecdeef06fd 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -330,11 +330,15 @@ def generate(env):
]
if env['machine'] == 'x86_64':
cflags += ['-m64']
+ # See also:
+ # - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
cflags += [
+ '-Werror=declaration-after-statement',
'-Wall',
'-Wmissing-prototypes',
+ '-Wmissing-field-initializers',
+ '-Wpointer-arith',
'-Wno-long-long',
- '-Wdeclaration-after-statement',
'-ffast-math',
'-std=gnu99',
'-fmessage-length=0', # be nice to Eclipse