if CHECK_CFLAGS(conf, ["-Wno-error=stringop-overflow"]):
conf.define('HAVE_WNO_ERROR_STRINGOP_OVERFLOW', 1)
+ if CHECK_CFLAGS(conf, ["-Wno-error=declaration-after-statement"]):
+ conf.define('HAVE_WNO_ERROR_DECLARATION_AFTER_STATEMENT', 1)
+
if not Options.options.disable_warnings_as_errors:
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Werror -Wno-error=deprecated-declarations', testflags=True)
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=tautological-compare', testflags=True)
install=False,
realname='pam_set_items.so')
+ pypamtest_cflags = ''
+ if bld.CONFIG_SET('HAVE_WNO_ERROR_DECLARATION_AFTER_STATEMENT'):
+ pypamtest_cflags = '-Wno-error=declaration-after-statement'
+
# Can be used to write pam tests in python
bld.SAMBA_PYTHON('pypamtest',
source='python/pypamtest.c',
+ cflags_end=pypamtest_cflags,
deps='libpamtest',
install=False)