From: obones Date: Thu, 7 Jan 2016 13:40:53 +0000 (+0100) Subject: host_driver is only used if KEYBOARD_LOCK_ENABLE is defined X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=66b6df0068b8a9ad9cd522ae2a32bc8d52aa35c9;p=max%2Ftmk_keyboard.git host_driver is only used if KEYBOARD_LOCK_ENABLE is defined --- 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: