build: Make GCC ignore fallthrough comments
authorTimm Bäder <mail@baedert.org>
Thu, 27 Jan 2022 15:05:33 +0000 (16:05 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 27 Jan 2022 15:05:33 +0000 (16:05 +0100)
commit7194196100bf7c08ba2d1d1664738efd6cd3fa78
tree967f6cb4dfa7fe208566d5928b09d6b34217e0f3
parentd9d2eb978da20f96a03e4452843e5f54307f707e
build: Make GCC ignore fallthrough comments

From the GCC manpage:

> Wimplicit-fallthrough=5 doesn't recognize any comments as
> fallthrough comments, only attributes disable
> the warning.

So, check for the =5 version after checking for the simple version. This
way we get -Wfallhrough with clang and -Wfallthrough -Wfallthrough=5
with GCC, which works.
meson.build