]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: Fix for unused function when compiling without MOUSEKEY_ENABLE
authoralex-ong <alex.ong@unsw.edu.au>
Mon, 22 Jan 2018 02:55:11 +0000 (13:55 +1100)
committeralex-ong <alex.ong@unsw.edu.au>
Mon, 22 Jan 2018 02:55:11 +0000 (13:55 +1100)
tmk_core/common/command.c

index bb471e887e5d7de3638888c1062a623f4616f9e3..688e460e8681e3d4b4d1523bc2a285cc1aab5f97 100644 (file)
@@ -629,6 +629,7 @@ static bool mousekey_console(uint8_t code)
 /***********************************************************
  * Utilities
  ***********************************************************/
+#if MOUSEKEY_ENABLE
 static uint8_t numkey2num(uint8_t code)
 {
     switch (code) {
@@ -645,6 +646,7 @@ static uint8_t numkey2num(uint8_t code)
     }
     return 0;
 }
+#endif
 
 static void switch_default_layer(uint8_t layer)
 {