From: José Fonseca Date: Fri, 13 Mar 2009 11:47:57 +0000 (+0000) Subject: scons: Use -Wdeclaration-after-statement X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f22574be95ccfb21058699f5e27e684abc87dac9;p=mesa.git scons: Use -Wdeclaration-after-statement --- diff --git a/scons/gallium.py b/scons/gallium.py index ee221103117..31236c4b016 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 def2e415d50..26ba309d686 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