scons: Promote declaration-after-statement to error. Detect more warnings.

This commit is contained in:
José Fonseca
2009-03-13 16:21:30 +00:00
parent e5a3aa5672
commit 102cb5c9cd
2 changed files with 11 additions and 3 deletions
+5 -1
View File
@@ -330,11 +330,15 @@ def generate(env):
]
if env['machine'] == 'x86_64':
cflags += ['-m64']
# See also:
# - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
cflags += [
'-Werror=declaration-after-statement',
'-Wall',
'-Wmissing-prototypes',
'-Wmissing-field-initializers',
'-Wpointer-arith',
'-Wno-long-long',
'-Wdeclaration-after-statement',
'-ffast-math',
'-std=gnu99',
'-fmessage-length=0', # be nice to Eclipse
+6 -2
View File
@@ -405,13 +405,17 @@ def generate(env):
]
if env['machine'] == 'x86_64':
ccflags += ['-m64']
# See also:
# - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
ccflags += [
'-Werror=declaration-after-statement',
'-Wall',
'-Wmissing-prototypes',
'-Wmissing-field-initializers',
'-Wpointer-arith',
'-Wno-long-long',
'-Wdeclaration-after-statement',
'-ffast-math',
'-pedantic',
'-std=gnu99',
'-fmessage-length=0', # be nice to Eclipse
]
if msvc: