Module: Mesa
Branch: master
Commit: f22574be95ccfb21058699f5e27e684abc87dac9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f22574be95ccfb21058699f5e27e684abc87dac9

Author: José Fonseca <jfons...@vmware.com>
Date:   Fri Mar 13 11:47:57 2009 +0000

scons: Use -Wdeclaration-after-statement

---

 scons/gallium.py |    1 +
 scons/generic.py |    4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index ee22110..31236c4 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 def2e41..26ba309 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

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to