From 18c8db140f917b7f4b8dff9e75fa21cff77ddd1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 20 Nov 2017 12:14:47 +0100 Subject: [PATCH] meson: add -Wimplicit-fallthrough=3 to compilation options (#7393) At some point before gcc-7 was released, -Wimplicit-fallthrough=3 was included in -Wextra. The documentation for gcc-7.2.1-2.fc27.x86_64 still says that, but empirical testing shows that it's not. The documentation also misstates that -Wimplicit-fallthrough is equivalent to -Wimplicit-fallthrough=3. Let's add -Wimplicit-fallthrough=3 explicitly to get the warnings if we regress. Prompted by #7389. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index f376d030fd1..b038d6df820 100644 --- a/meson.build +++ b/meson.build @@ -271,6 +271,7 @@ foreach arg : ['-Wextra', '-Wstrict-prototypes', '-Wredundant-decls', '-Wmissing-noreturn', + '-Wimplicit-fallthrough=3', '-Wshadow', '-Wendif-labels', '-Wstrict-aliasing=2', -- 2.47.3