From 3e0f538c74edc79fe579049c0cafd915067e9bf9 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 23 Mar 2018 10:18:17 +0100 Subject: [PATCH] s3:modules: Set -Wno-strict-overflow for getdate if supported bison generates an C89 files which does some weired things. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- source3/modules/wscript_build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/modules/wscript_build b/source3/modules/wscript_build index 5c5298904708..027283bff87c 100644 --- a/source3/modules/wscript_build +++ b/source3/modules/wscript_build @@ -117,10 +117,15 @@ bld.SAMBA3_MODULE('vfs_default_quota', internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'), enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota')) +module_cflags='' +if bld.CONFIG_SET('HAVE_WNO_STRICT_OVERFLOW'): + module_cflags='-Wno-strict-overflow' + bld.SAMBA3_MODULE('vfs_readonly', subsystem='vfs', source='vfs_readonly.c getdate.c', deps='samba-util', + cflags_end=module_cflags, init_function='', internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_readonly'), enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_readonly')) -- 2.34.1