summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-13 11:47:57 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-08-31 14:45:42 +0100
commitdf1ae293c9c88615201cbe4b6c7a721d997ec809 (patch)
tree142941edfc87006e20d4c12fd8f6f4bf742ce648
parent87810d3b7166043917363553d6651151a2f61170 (diff)
scons: Use -Wdeclaration-after-statement
(cherry picked from commit f22574be95ccfb21058699f5e27e684abc87dac9)
-rw-r--r--scons/gallium.py1
-rw-r--r--scons/generic.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index f559ca0089..e837e9702c 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -315,6 +315,7 @@ def generate(env):
'-Wall',
'-Wmissing-prototypes',
'-Wno-long-long',
+ '-Wdeclaration-after-statement',
'-ffast-math',
'-std=c99',
'-pedantic',
diff --git a/scons/generic.py b/scons/generic.py
index a7731a19d7..66623427a4 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -385,6 +385,7 @@ def generate(env):
'-Wall',
'-Wmissing-prototypes',
'-Wno-long-long',
+ '-Wdeclaration-after-statement',
'-ffast-math',
'-pedantic',
'-fmessage-length=0', # be nice to Eclipse