mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
scons: Promote declaration-after-statement to error. Detect more warnings.
This commit is contained in:
parent
e5a3aa5672
commit
102cb5c9cd
2 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue