summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-02-14 12:08:37 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-05-07 18:45:04 +0000
commitbead4fdb88c9684a6c0ed066194cecb5d186026d (patch)
treee5f2db73e330b5cde7ca677bceecf1039b0e7ed0 /buildtools
parente6f8404827958705a5d7fc92a43efed365dd0451 (diff)
downloadsamba-bead4fdb88c9684a6c0ed066194cecb5d186026d.tar.gz
wafsamba: Enable warnings about zero-length formats
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
Diffstat (limited to 'buildtools')
-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 6e8b6ab4efd..0dbfd54393f 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -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)