diff options
author | Uri Simchoni <uri@samba.org> | 2017-11-21 20:55:16 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-11-22 10:20:21 +0100 |
commit | 2e53d6a30fc4135b702611d17a5d552cc32c446e (patch) | |
tree | be4d0b80809df1b2fd6c9bebaca7ba925a2bf170 /buildtools | |
parent | 34b4be091fe83ac0eec9e2d697b54bfa5e7823b6 (diff) | |
download | samba-2e53d6a30fc4135b702611d17a5d552cc32c446e.tar.gz |
build: specify -Wformat as a prerequisite of -Wformat-security
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.py | 3 |
1 files changed, 2 insertions, 1 deletions
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"], ''' |