wafsamba: Enable warnings about zero-length formats
authorAndreas Schneider <asn@samba.org>
Thu, 14 Feb 2019 11:08:37 +0000 (12:08 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 7 May 2019 18:45:04 +0000 (18:45 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue May  7 18:45:06 UTC 2019 on sn-devel-184

buildtools/wafsamba/samba_autoconf.py

index 6e8b6ab4efdc8ddad966973f778654bc0af955be..0dbfd54393f4a897b1fc5ec95cca880897252254 100644 (file)
@@ -739,6 +739,7 @@ def SAMBA_CONFIG_H(conf, path=None):
                       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('-Wformat-zero-length', testflags=True)
         conf.ADD_CFLAGS('-Wcast-align -Wcast-qual', testflags=True)
         conf.ADD_CFLAGS('-fno-common', testflags=True)