s3:modules: Set -Wno-strict-overflow for getdate if supported
authorAndreas Schneider <asn@samba.org>
Fri, 23 Mar 2018 09:18:17 +0000 (10:18 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 3 Apr 2018 18:20:11 +0000 (20:20 +0200)
bison generates an C89 files which does some weired things.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/wscript_build

index 5c5298904708baf6f25ef288bdb8de6dcddd6901..027283bff87ce5f1790e8dac73027b0649df81e4 100644 (file)
@@ -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'))