scons: Use -Wdeclaration-after-statement
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 13 Mar 2009 11:47:57 +0000 (11:47 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 13 Mar 2009 11:48:14 +0000 (11:48 +0000)
scons/gallium.py
scons/generic.py

index ee221103117cbeb4a1593c55cebe802bab54aabc..31236c4b01613ec0c9ebb1c4ef82122fea205b9b 100644 (file)
@@ -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
index def2e415d505eaec77e8d34ae81ad98f51418578..26ba309d6868ddf81dfae94bbf53416ba6ad18b9 100644 (file)
@@ -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