From: Andreas Schneider Date: Thu, 14 Feb 2019 11:06:57 +0000 (+0100) Subject: wafsamba: Enable warnings about format overflows X-Git-Tag: tdb-1.4.1~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6f8404827958705a5d7fc92a43efed365dd0451;p=thirdparty%2Fsamba.git wafsamba: Enable warnings about format overflows Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- 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)