]> git.samba.org - samba.git/commitdiff
wafsamba: add -Werror=format-security to the developer build
authorStefan Metzmacher <metze@samba.org>
Fri, 2 Sep 2016 15:23:28 +0000 (17:23 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 5 Sep 2016 18:22:59 +0000 (20:22 +0200)
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

buildtools/wafsamba/samba_autoconf.py

index 5f35d77615334347ba7660d54a93bc829c2b691a..795d13075cf41bb0b9ab60ac190669a09cf06cb5 100644 (file)
@@ -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"], '''