Closed jcul closed 3 years ago
GCC 7 added a warning on fall throughs in case statements. It's enabled by -Wextra and treated as an error due to -Wall so it breaks compilation.
See -Wimplicit-fallthrough in the GCC manual.
The default value is 3, which means a comment matching some specific regexes is enough to disable the warning.
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
GCC 7 added a warning on fall throughs in case statements. It's enabled by -Wextra and treated as an error due to -Wall so it breaks compilation.
See -Wimplicit-fallthrough in the GCC manual.
The default value is 3, which means a comment matching some specific regexes is enough to disable the warning.
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html