GCC, Wimplicit-fallthrough , . , -Werror (.. -Werror=implicit-fallthrough .
-Wextra ( ), , . , , -Wextra -Wpedantic -Werror.
, , , case, case, , , , /.
, - ( demo):
(?# match any 'case' following 'break;', ':' or '{' into a non-capturing group)
(?# then match the remaining 'case' into a named "fallthrough" group)
(?:(break;|:|{)[\r\n\s]*case) | (?<fallthrough>case)
, perl ( python - ) script , "".