summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-02-14 12:06:57 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-05-07 17:31:23 +0000
commite6f8404827958705a5d7fc92a43efed365dd0451 (patch)
treec724e11fb1fb86664a423cb5ff2266211a7cfb2e /buildtools
parentd16e9dfc81d7d79c8d2bcffc66b6fe008e726974 (diff)
downloadsamba-e6f8404827958705a5d7fc92a43efed365dd0451.tar.gz
wafsamba: Enable warnings about format overflows
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
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 06ec7da333a..6e8b6ab4efd 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -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)