summaryrefslogtreecommitdiffstats
path: root/tmk_core/common
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-06-21 17:42:29 -0400
committerGitHub <noreply@github.com>2016-06-21 17:42:29 -0400
commit1a0bac8bccf0e156d2f3c5f14a7214f9677b6370 (patch)
treeca8a2a62e744a3448cfc247caab029152e2ebefb /tmk_core/common
parent758a8c64e9ffb12cda4c78d8d1ee6a3f448901fc (diff)
Warning reductions (#430)
Warning reductions
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/command.c3
-rw-r--r--tmk_core/common/command.h1
-rw-r--r--tmk_core/common/led.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index 024d7c67a3..187a2b9496 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -66,7 +66,6 @@ static bool mousekey_console(uint8_t code);
static void mousekey_console_help(void);
#endif
-static uint8_t numkey2num(uint8_t code);
static void switch_default_layer(uint8_t layer);
@@ -763,7 +762,7 @@ static bool mousekey_console(uint8_t code)
/***********************************************************
* Utilities
***********************************************************/
-static uint8_t numkey2num(uint8_t code)
+uint8_t numkey2num(uint8_t code)
{
switch (code) {
case KC_1: return 1;
diff --git a/tmk_core/common/command.h b/tmk_core/common/command.h
index 92b18849bf..a729e4b1e4 100644
--- a/tmk_core/common/command.h
+++ b/tmk_core/common/command.h
@@ -27,6 +27,7 @@ bool command_extra(uint8_t code);
bool command_console_extra(uint8_t code);
#ifdef COMMAND_ENABLE
+uint8_t numkey2num(uint8_t code);
bool command_proc(uint8_t code);
#else
#define command_proc(code) false
diff --git a/tmk_core/common/led.h b/tmk_core/common/led.h
index 2e18dc2afa..9dc8987802 100644
--- a/tmk_core/common/led.h
+++ b/tmk_core/common/led.h
@@ -37,6 +37,9 @@ void led_set(uint8_t usb_led);
/* keyboard-specific LED functionality */
void led_set_kb(uint8_t usb_led);
+
+void led_init_ports(void);
+
#ifdef __cplusplus
}
#endif