From 66b6df0068b8a9ad9cd522ae2a32bc8d52aa35c9 Mon Sep 17 00:00:00 2001 From: obones Date: Thu, 7 Jan 2016 14:40:53 +0100 Subject: [PATCH] host_driver is only used if KEYBOARD_LOCK_ENABLE is defined --- tmk_core/common/command.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index d59bb01b..465aa21c 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c @@ -178,7 +178,9 @@ static void print_eeconfig(void) static bool command_common(uint8_t code) { +#ifdef KEYBOARD_LOCK_ENABLE static host_driver_t *host_driver = 0; +#endif switch (code) { #ifdef SLEEP_LED_ENABLE case KC_Z: