From 102cb5c9cd5ce12fc43828e44e7baf390d4c351d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 13 Mar 2009 16:21:30 +0000 Subject: scons: Promote declaration-after-statement to error. Detect more warnings. --- scons/gallium.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scons/gallium.py') diff --git a/scons/gallium.py b/scons/gallium.py index 31236c4..ecdeef0 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 -- cgit v1.1