summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2017-11-20 10:17:16 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-11-22 10:20:21 +0100
commite973ac06431183b25cecf61053f3a23c91b88de6 (patch)
treed4a810b1327e96d4a75d21b3b0e05b28868ee4dd /buildtools
parent7a2d8aa084d3b9e54eb358d46e1f26c4c6875390 (diff)
downloadsamba-e973ac06431183b25cecf61053f3a23c91b88de6.tar.gz
build: disable format-zero-length warning
format-zero-length warns against printf-style calls with zero-length format string. vfs_full_audit module has such calls, and up until now there was no warning against it because the do_log in vfs_full_audit is not recognized as printf-style function. In a following commit the do_log will be converted to a printf-style function, hence the need to disable this warning. (an alternative would be to disable only for vfs_full_audit, but that would complicate things needlessly). Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 795d13075cf..4c0400a625d 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -708,6 +708,7 @@ def SAMBA_CONFIG_H(conf, path=None):
testflags=True)
conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True)
+ conf.ADD_CFLAGS('-Wno-format-zero-length', testflags=True)
conf.ADD_CFLAGS('-Werror=format-security -Wformat-security', testflags=True)
# This check is because for ldb_search(), a NULL format string
# is not an error, but some compilers complain about that.