From e973ac06431183b25cecf61053f3a23c91b88de6 Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Mon, 20 Nov 2017 10:17:16 +0200 Subject: 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 --- buildtools/wafsamba/samba_autoconf.py | 1 + 1 file changed, 1 insertion(+) (limited to 'buildtools') 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. -- cgit v1.2.1