1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-07 12:47:36 +00:00

Enable -Wimplicit-fallthrough.

This commit is contained in:
Andreas Kling 2019-02-15 12:39:16 +01:00
parent 56f0a30f9b
commit df6aaaeeef
11 changed files with 12 additions and 12 deletions

View file

@ -417,14 +417,14 @@ void VirtualConsole::on_char(byte ch)
return;
}
m_escape_state = ExpectIntermediate;
// fall through
[[fallthrough]];
case ExpectIntermediate:
if (is_valid_intermediate_character(ch)) {
m_intermediates.append(ch);
return;
}
m_escape_state = ExpectFinal;
// fall through
[[fallthrough]];
case ExpectFinal:
if (is_valid_final_character(ch)) {
m_escape_state = Normal;