summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-13 11:47:57 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-03-13 11:48:14 +0000
commitf22574be95ccfb21058699f5e27e684abc87dac9 (patch)
treeaf1c7add07b94f0591c7f89182358ca8542f4da5 /scons
parent188a3334f8957e9a4dd3fd169716be4dd2979b05 (diff)
scons: Use -Wdeclaration-after-statement
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py1
-rw-r--r--scons/generic.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index ee22110311..31236c4b01 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -334,6 +334,7 @@ def generate(env):
'-Wall',
'-Wmissing-prototypes',
'-Wno-long-long',
+ '-Wdeclaration-after-statement',
'-ffast-math',
'-std=gnu99',
'-fmessage-length=0', # be nice to Eclipse
diff --git a/scons/generic.py b/scons/generic.py
index def2e415d5..26ba309d68 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -409,13 +409,11 @@ def generate(env):
'-Wall',
'-Wmissing-prototypes',
'-Wno-long-long',
+ '-Wdeclaration-after-statement',
'-ffast-math',
'-pedantic',
'-fmessage-length=0', # be nice to Eclipse
]
- cflags += [
- '-Wmissing-prototypes',
- ]
if msvc:
# See also:
# - http://msdn.microsoft.com/en-us/library/19z1t1wy.aspx