summaryrefslogtreecommitdiff
path: root/Kernel/VirtualConsole.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-15 12:39:16 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-15 12:39:16 +0100
commitdf6aaaeeef5777dbf3bbdff6b4651ff891fa5a35 (patch)
tree59e34ada56a95a87adf86f8946a6bbe9fce3f007 /Kernel/VirtualConsole.cpp
parent56f0a30f9b014df71afb8cd90cd234d9c3c6c87e (diff)
downloadserenity-df6aaaeeef5777dbf3bbdff6b4651ff891fa5a35.zip
Enable -Wimplicit-fallthrough.
Diffstat (limited to 'Kernel/VirtualConsole.cpp')
-rw-r--r--Kernel/VirtualConsole.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VirtualConsole.cpp b/Kernel/VirtualConsole.cpp
index ee1e984226..3760fa0b63 100644
--- a/Kernel/VirtualConsole.cpp
+++ b/Kernel/VirtualConsole.cpp
@@ -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;