summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2016-11-01 13:26:11 +1300
committerAndrew Bartlett <abartlet@samba.org>2017-02-10 05:09:08 +0100
commitb02d636e0b1c43821a83297f51599bb03b5858b3 (patch)
treea4b4b52d53d5797981d9dc999a8daaa182b90627 /lib
parent1a330443c64f237d7f0096f91880b6e358a93bf7 (diff)
downloadsamba-b02d636e0b1c43821a83297f51599bb03b5858b3.tar.gz
lib/replace tests: prevent GCC fretting over snprintf sizes
These tests deliberately use snprintf for truncating strings, which is fine for tests. This has the effect of leaving the warning in place but preventing it from becoming a fatal error. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index ea0d5d09b89..de199b1790b 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -704,9 +704,10 @@ def build(bld):
deps='crypt dl nsl socket rt attr' + extra_libs)
bld.SAMBA_SUBSYSTEM('replace-test',
- source='''test/testsuite.c test/strptime.c
- test/os2_delete.c test/getifaddrs.c''',
- deps='replace')
+ source='''test/testsuite.c test/strptime.c
+ test/os2_delete.c test/getifaddrs.c''',
+ deps='replace',
+ cflags="-Wno-format-length")
if bld.env.standalone_replace:
bld.SAMBA_BINARY('replace_testsuite',