From: Andreas Schneider Date: Thu, 14 Feb 2019 11:08:37 +0000 (+0100) Subject: wafsamba: Enable warnings about zero-length formats X-Git-Tag: tdb-1.4.1~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bead4fdb88c9684a6c0ed066194cecb5d186026d;p=thirdparty%2Fsamba.git wafsamba: Enable warnings about zero-length formats Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Tue May 7 18:45:06 UTC 2019 on sn-devel-184 --- 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)