Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
Using the new fallthrough macro, building on openSUSE 15 with gcc-7.5
error: this statement may fall through [-Werror=implicit-fallthrough=]
Where the fallthrough attribute is available prefer it over a no-op suppression of
the implicit fallthrough warning.
Ex:
# if defined(__GNUC__) && __GNUC__ >= 7 # define fallthrough __attribute__((fallthrough)) /* fallthrough */ # else # define fallthrough do {} while (0) /* fallthrough */ # endif