waf:lib/replace: fix a build error with non-gcc compilers
authorBjörn Jacke <bj@sernet.de>
Sun, 6 Jan 2019 19:41:32 +0000 (20:41 +0100)
committerBjoern Jacke <bjacke@samba.org>
Thu, 10 Jan 2019 21:46:11 +0000 (22:46 +0100)
3a175830e579ab10231439657b23733338cd5634 added that variable which should have
been an empty initialization here. -Wno-format-zero-length (which might be
unsupported by the compiler) should not be set if we really only want to
initialize the cflags.

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/replace/wscript

index 6cbae93..a7fd25d 100644 (file)
@@ -857,7 +857,7 @@ def build(bld):
                       private_library=True,
                       deps='crypt dl nsl socket rt attr' + extra_libs)
 
-    replace_test_cflags="-Wno-format-zero-length"
+    replace_test_cflags = ''
     if bld.CONFIG_SET('HAVE_WNO_FORMAT_TRUNCATION'):
         replace_test_cflags += " -Wno-format-truncation"
     bld.SAMBA_SUBSYSTEM('replace-test',