mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +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 1670d00be88108a483f04c9763012504499b99e4)
This commit is contained in:
parent
3afa33b1f6
commit
fdcfdcd6f0
@ -706,7 +706,8 @@ def build(bld):
|
|||||||
bld.SAMBA_SUBSYSTEM('replace-test',
|
bld.SAMBA_SUBSYSTEM('replace-test',
|
||||||
source='''test/testsuite.c test/strptime.c
|
source='''test/testsuite.c test/strptime.c
|
||||||
test/os2_delete.c test/getifaddrs.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:
|
if bld.env.standalone_replace:
|
||||||
bld.SAMBA_BINARY('replace_testsuite',
|
bld.SAMBA_BINARY('replace_testsuite',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user