mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
waf: use the correct WERROR_CFLAGS in CHECK_CODE
all the non gcc version were incorrectly set here till now Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
99dd2ae810
commit
918bf89dc7
@ -397,13 +397,8 @@ def CHECK_CODE(conf, code, define,
|
||||
# Be strict when relying on a compiler check
|
||||
# Some compilers (e.g. xlc) ignore non-supported features as warnings
|
||||
if strict:
|
||||
extra_cflags = None
|
||||
if conf.env["CC_NAME"] == "gcc":
|
||||
extra_cflags = "-Werror"
|
||||
elif conf.env["CC_NAME"] == "xlc":
|
||||
extra_cflags = "-qhalt=w"
|
||||
if extra_cflags:
|
||||
cflags.append(extra_cflags)
|
||||
if 'WERROR_CFLAGS' in conf.env:
|
||||
cflags.extend(conf.env['WERROR_CFLAGS'])
|
||||
|
||||
if local_include:
|
||||
cflags.append('-I%s' % conf.path.abspath())
|
||||
|
Loading…
Reference in New Issue
Block a user