From: Uri Simchoni Date: Tue, 21 Nov 2017 18:55:16 +0000 (+0200) Subject: build: specify -Wformat as a prerequisite of -Wformat-security X-Git-Tag: talloc-2.1.11~398 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e53d6a30fc4135b702611d17a5d552cc32c446e;p=thirdparty%2Fsamba.git build: specify -Wformat as a prerequisite of -Wformat-security Signed-off-by: Uri Simchoni Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 682edf4215f..e157b20de2c 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -709,7 +709,8 @@ def SAMBA_CONFIG_H(conf, path=None): 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) + conf.ADD_CFLAGS('-Werror=format-security -Wformat-security', + testflags=True, prereq_flags='-Wformat') # This check is because for ldb_search(), a NULL format string # is not an error, but some compilers complain about that. if CHECK_CFLAGS(conf, ["-Werror=format", "-Wformat=2"], '''