mirror of
https://github.com/RGBCube/serenity
synced 2025-07-07 12:47:36 +00:00
Enable -Wimplicit-fallthrough.
This commit is contained in:
parent
56f0a30f9b
commit
df6aaaeeef
11 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue