wafsamba: Build with -Wimplicit-fallthrough if supported
authorAndreas Schneider <asn@samba.org>
Wed, 26 Jul 2017 14:29:06 +0000 (16:29 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Mar 2018 18:38:12 +0000 (19:38 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Mar  1 19:38:12 CET 2018 on sn-devel-144

buildtools/wafsamba/samba_autoconf.py

index cc08e0d5c3db07e5978a3bd21eea7da9e35859d2..35f4f36f61c897ea64a02cf850f616ad4a424f21 100644 (file)
@@ -711,6 +711,8 @@ def SAMBA_CONFIG_H(conf, path=None):
                         testflags=True)
         conf.ADD_CFLAGS('-Werror=uninitialized -Wuninitialized',
                         testflags=True)
+        conf.ADD_CFLAGS('-Wimplicit-fallthrough',
+                        testflags=True)
 
         conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True)
         conf.ADD_CFLAGS('-Wno-format-zero-length', testflags=True)