1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00

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=]

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12827

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 1670d00be8)
This commit is contained in:
Andreas Schneider 2017-06-01 14:24:42 +02:00 committed by Karolin Seeger
parent 3afa33b1f6
commit fdcfdcd6f0

View File

@ -706,7 +706,8 @@ def build(bld):
bld.SAMBA_SUBSYSTEM('replace-test',
source='''test/testsuite.c test/strptime.c
test/os2_delete.c test/getifaddrs.c''',
deps='replace')
deps='replace',
cflags="-Wno-format-zero-length -Wno-format-truncation")
if bld.env.standalone_replace:
bld.SAMBA_BINARY('replace_testsuite',