]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: add -Wimplicit-fallthrough=3 to compilation options (#7393)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Nov 2017 11:14:47 +0000 (12:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Nov 2017 11:14:47 +0000 (12:14 +0100)
commit18c8db140f917b7f4b8dff9e75fa21cff77ddd1e
tree3fd5a9a8ce58e8c6008c643c3d891b133e085c54
parentf9753b0c792054ce7ea3c6fa2221d5f1d0b79b3c
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