mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
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.
This commit is contained in:
parent
f9753b0c79
commit
18c8db140f
@ -271,6 +271,7 @@ foreach arg : ['-Wextra',
|
||||
'-Wstrict-prototypes',
|
||||
'-Wredundant-decls',
|
||||
'-Wmissing-noreturn',
|
||||
'-Wimplicit-fallthrough=3',
|
||||
'-Wshadow',
|
||||
'-Wendif-labels',
|
||||
'-Wstrict-aliasing=2',
|
||||
|
Loading…
Reference in New Issue
Block a user