From 8af093c432c465f6cbecbf4a0501cdc98b070a5d Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 7 Mar 2018 12:29:04 +0100 Subject: [PATCH] Fix a mostly harmless warning In `hexToKeysWithNumpad`, have a default case, a pointless one, because we never take that branch, but it silences a warning. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/Unicode.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Kaleidoscope/Unicode.cpp b/src/Kaleidoscope/Unicode.cpp index 81b723e4..bc235388 100644 --- a/src/Kaleidoscope/Unicode.cpp +++ b/src/Kaleidoscope/Unicode.cpp @@ -179,6 +179,9 @@ __attribute__((weak)) Key hexToKeysWithNumpad(uint8_t hex) { case 0xF: m = Key_F.keyCode; break; + default: + m = Key_NoKey.keyCode; + break; } } return { m, KEY_FLAGS };