From: Andreas Schneider Date: Thu, 1 Jun 2017 12:24:42 +0000 (+0200) Subject: waf: Do not trhow a format-truncation error for test/snprintf.c X-Git-Tag: ldb-1.1.31~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1670d00be88108a483f04c9763012504499b99e4;p=thirdparty%2Fsamba.git waf: Do not trhow a format-truncation error for test/snprintf.c This fixes building with GCC 7.1 Error: ../lib/replace/test/testsuite.c:355:6: error: ā€˜%d’ directive output truncated writing 1 byte into a region of size 0 [-Werror=format-truncation=] Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/lib/replace/wscript b/lib/replace/wscript index 38627c0e309..eeb1b3ebcf0 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -708,7 +708,7 @@ def build(bld): source='''test/testsuite.c test/strptime.c test/os2_delete.c test/getifaddrs.c''', deps='replace', - cflags="-Wno-format-zero-length") + cflags="-Wno-format-zero-length -Wno-format-truncation") if bld.env.standalone_replace: bld.SAMBA_BINARY('replace_testsuite',