From: Uri Simchoni Date: Mon, 20 Nov 2017 08:17:16 +0000 (+0200) Subject: build: disable format-zero-length warning X-Git-Tag: talloc-2.1.11~401 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e973ac06431183b25cecf61053f3a23c91b88de6;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andrew Bartlett --- 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.