wafsamba: Enable warnings about format overflows
authorAndreas Schneider <asn@samba.org>
Thu, 14 Feb 2019 11:06:57 +0000 (12:06 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 7 May 2019 17:31:23 +0000 (17:31 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
buildtools/wafsamba/samba_autoconf.py

index 06ec7da333a465c0824666469411dd49dff47315..6e8b6ab4efdc8ddad966973f778654bc0af955be 100644 (file)
@@ -738,6 +738,7 @@ def SAMBA_CONFIG_H(conf, path=None):
                       cflags='-Wmissing-field-initializers -Werror=missing-field-initializers',
                       msg="Checking C99 init of nested structs."):
             conf.ADD_CFLAGS('-Wmissing-field-initializers', testflags=True)
+        conf.ADD_CFLAGS('-Wformat-overflow=2', testflags=True)
         conf.ADD_CFLAGS('-Wcast-align -Wcast-qual', testflags=True)
         conf.ADD_CFLAGS('-fno-common', testflags=True)