aboutsummaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-09-02 17:23:28 +0200
committerAndrew Bartlett <abartlet@samba.org>2016-09-05 20:22:59 +0200
commit7c84cb54fc34bdd1c4d79cd6b588256c9bacc705 (patch)
tree92fd2566867bba939667c84d82bbd7c54e24cef1 /buildtools/wafsamba
parentec455796fe91fa97acd339be24baa75358395621 (diff)
downloadsamba-7c84cb54fc34bdd1c4d79cd6b588256c9bacc705.tar.gz
samba-7c84cb54fc34bdd1c4d79cd6b588256c9bacc705.tar.xz
samba-7c84cb54fc34bdd1c4d79cd6b588256c9bacc705.zip
wafsamba: add -Werror=format-security to the developer build
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Sep 5 20:23:00 CEST 2016 on sn-devel-144
Diffstat (limited to 'buildtools/wafsamba')
-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 5f35d776153..795d13075cf 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('-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.
if CHECK_CFLAGS(conf, ["-Werror=format", "-Wformat=2"], '''