From: Björn Jacke Date: Sun, 6 Jan 2019 19:41:32 +0000 (+0100) Subject: waf:lib/replace: fix a build error with non-gcc compilers X-Git-Tag: talloc-2.1.15~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121db8c08f45ca15310d9d62b868b4e38353bcc6;p=thirdparty%2Fsamba.git waf:lib/replace: fix a build error with non-gcc compilers 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 Reviewed-by: Stefan Metzmacher --- diff --git a/lib/replace/wscript b/lib/replace/wscript index 6cbae932b20..a7fd25d15bc 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -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',