wafsamba: Enable warnings for missing field initializer
authorAndreas Schneider <asn@samba.org>
Thu, 13 Dec 2018 10:41:56 +0000 (11:41 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 29 Apr 2019 16:04:28 +0000 (16:04 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
buildtools/wafsamba/samba_autoconf.py

index 98ffdfea4583155fbeb2565ddbd608a0de0bc601..f2b049e40a7b5b2d8a56acb09e7d57d2038962c7 100644 (file)
@@ -731,6 +731,7 @@ def SAMBA_CONFIG_H(conf, path=None):
         conf.ADD_CFLAGS('-Wall', testflags=True)
         conf.ADD_CFLAGS('-Wshadow', testflags=True)
         conf.ADD_CFLAGS('-Wmissing-prototypes', testflags=True)
+        conf.ADD_CFLAGS('-Wmissing-field-initializers', testflags=True)
         conf.ADD_CFLAGS('-Wcast-align -Wcast-qual', testflags=True)
         conf.ADD_CFLAGS('-fno-common', testflags=True)