diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2016-06-21 17:42:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-21 17:42:29 -0400 |
| commit | 1a0bac8bccf0e156d2f3c5f14a7214f9677b6370 (patch) | |
| tree | ca8a2a62e744a3448cfc247caab029152e2ebefb /tmk_core | |
| parent | 758a8c64e9ffb12cda4c78d8d1ee6a3f448901fc (diff) | |
| download | qmk_firmware-1a0bac8bccf0e156d2f3c5f14a7214f9677b6370.tar.gz qmk_firmware-1a0bac8bccf0e156d2f3c5f14a7214f9677b6370.zip | |
Warning reductions (#430)
Warning reductions
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/command.c | 3 | ||||
| -rw-r--r-- | tmk_core/common/command.h | 1 | ||||
| -rw-r--r-- | tmk_core/common/led.h | 3 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa/bluetooth.c | 1 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa/bluetooth.h | 2 |
5 files changed, 7 insertions, 3 deletions
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index 024d7c67a..187a2b949 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c | |||
| @@ -66,7 +66,6 @@ static bool mousekey_console(uint8_t code); | |||
| 66 | static void mousekey_console_help(void); | 66 | static void mousekey_console_help(void); |
| 67 | #endif | 67 | #endif |
| 68 | 68 | ||
| 69 | static uint8_t numkey2num(uint8_t code); | ||
| 70 | static void switch_default_layer(uint8_t layer); | 69 | static void switch_default_layer(uint8_t layer); |
| 71 | 70 | ||
| 72 | 71 | ||
| @@ -763,7 +762,7 @@ static bool mousekey_console(uint8_t code) | |||
| 763 | /*********************************************************** | 762 | /*********************************************************** |
| 764 | * Utilities | 763 | * Utilities |
| 765 | ***********************************************************/ | 764 | ***********************************************************/ |
| 766 | static uint8_t numkey2num(uint8_t code) | 765 | uint8_t numkey2num(uint8_t code) |
| 767 | { | 766 | { |
| 768 | switch (code) { | 767 | switch (code) { |
| 769 | case KC_1: return 1; | 768 | case KC_1: return 1; |
diff --git a/tmk_core/common/command.h b/tmk_core/common/command.h index 92b18849b..a729e4b1e 100644 --- a/tmk_core/common/command.h +++ b/tmk_core/common/command.h | |||
| @@ -27,6 +27,7 @@ bool command_extra(uint8_t code); | |||
| 27 | bool command_console_extra(uint8_t code); | 27 | bool command_console_extra(uint8_t code); |
| 28 | 28 | ||
| 29 | #ifdef COMMAND_ENABLE | 29 | #ifdef COMMAND_ENABLE |
| 30 | uint8_t numkey2num(uint8_t code); | ||
| 30 | bool command_proc(uint8_t code); | 31 | bool command_proc(uint8_t code); |
| 31 | #else | 32 | #else |
| 32 | #define command_proc(code) false | 33 | #define command_proc(code) false |
diff --git a/tmk_core/common/led.h b/tmk_core/common/led.h index 2e18dc2af..9dc898780 100644 --- a/tmk_core/common/led.h +++ b/tmk_core/common/led.h | |||
| @@ -37,6 +37,9 @@ void led_set(uint8_t usb_led); | |||
| 37 | /* keyboard-specific LED functionality */ | 37 | /* keyboard-specific LED functionality */ |
| 38 | void led_set_kb(uint8_t usb_led); | 38 | void led_set_kb(uint8_t usb_led); |
| 39 | 39 | ||
| 40 | |||
| 41 | void led_init_ports(void); | ||
| 42 | |||
| 40 | #ifdef __cplusplus | 43 | #ifdef __cplusplus |
| 41 | } | 44 | } |
| 42 | #endif | 45 | #endif |
diff --git a/tmk_core/protocol/lufa/bluetooth.c b/tmk_core/protocol/lufa/bluetooth.c index ed66e52c1..549606162 100644 --- a/tmk_core/protocol/lufa/bluetooth.c +++ b/tmk_core/protocol/lufa/bluetooth.c | |||
| @@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 19 | #include "report.h" | 19 | #include "report.h" |
| 20 | #include "print.h" | 20 | #include "print.h" |
| 21 | #include "debug.h" | 21 | #include "debug.h" |
| 22 | #include "../serial.h" | ||
| 23 | #include "bluetooth.h" | 22 | #include "bluetooth.h" |
| 24 | 23 | ||
| 25 | void bluefruit_keyboard_print_report(report_keyboard_t *report) | 24 | void bluefruit_keyboard_print_report(report_keyboard_t *report) |
diff --git a/tmk_core/protocol/lufa/bluetooth.h b/tmk_core/protocol/lufa/bluetooth.h index 01f07e8e6..78ece1cd0 100644 --- a/tmk_core/protocol/lufa/bluetooth.h +++ b/tmk_core/protocol/lufa/bluetooth.h | |||
| @@ -18,6 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 18 | #ifndef BLUETOOTH_H | 18 | #ifndef BLUETOOTH_H |
| 19 | #define BLUETOOTH_H | 19 | #define BLUETOOTH_H |
| 20 | 20 | ||
| 21 | #include "../serial.h" | ||
| 22 | |||
| 21 | void bluefruit_serial_send(uint8_t data); | 23 | void bluefruit_serial_send(uint8_t data); |
| 22 | 24 | ||
| 23 | /* | 25 | /* |
