Commit 01cb3735 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Daniel Thompson

kdb: kdb_keyboard: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Notice that in this particular case, I replaced the code comments with
a proper "fall through" annotation, which is what GCC is expecting
to find.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
parent 9eb62f0e
...@@ -173,11 +173,11 @@ int kdb_get_kbd_char(void) ...@@ -173,11 +173,11 @@ int kdb_get_kbd_char(void)
case KT_LATIN: case KT_LATIN:
if (isprint(keychar)) if (isprint(keychar))
break; /* printable characters */ break; /* printable characters */
/* drop through */ /* fall through */
case KT_SPEC: case KT_SPEC:
if (keychar == K_ENTER) if (keychar == K_ENTER)
break; break;
/* drop through */ /* fall through */
default: default:
return -1; /* ignore unprintables */ return -1; /* ignore unprintables */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment