From: Andreas Schneider Date: Wed, 26 Jul 2017 14:29:06 +0000 (+0200) Subject: wafsamba: Build with -Wimplicit-fallthrough if supported X-Git-Tag: talloc-2.1.12~331 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33fa6778e1d95c41733c43b2b694cd22d440e4c6;p=thirdparty%2Fsamba.git wafsamba: Build with -Wimplicit-fallthrough if supported Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu Mar 1 19:38:12 CET 2018 on sn-devel-144 --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index cc08e0d5c3d..35f4f36f61c 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -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)