wscript: always enable -Werror=implicit-function-declaration
This commit is contained in:
parent
ca9d3d262a
commit
3daf014af8
1 changed files with 6 additions and 1 deletions
7
wscript
7
wscript
|
@ -279,7 +279,7 @@ def configure(conf):
|
|||
conf.env.append_unique('CXXFLAGS', cxxflags)
|
||||
conf.env.append_unique('LINKFLAGS', linkflags)
|
||||
|
||||
if conf.env.COMPILER_CC != 'msvc' and not conf.options.DISABLE_WERROR:
|
||||
if conf.env.COMPILER_CC != 'msvc':
|
||||
opt_flags = [
|
||||
# '-Wall', '-Wextra', '-Wpedantic',
|
||||
'-fdiagnostics-color=always',
|
||||
|
@ -342,6 +342,11 @@ def configure(conf):
|
|||
|
||||
opt_cxxflags = [] # TODO:
|
||||
|
||||
if conf.options.DISABLE_WERROR:
|
||||
opt_flags = []
|
||||
opt_cflags = ['-Werror=implicit-function-declaration']
|
||||
opt_cxxflags = []
|
||||
|
||||
conf.env.CFLAGS_werror = conf.filter_cflags(opt_flags + opt_cflags, cflags)
|
||||
conf.env.CXXFLAGS_werror = conf.filter_cxxflags(opt_flags + opt_cxxflags, cxxflags)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue