From 684eb9df1e90f9f5dfa4a679631d3a6100b92e8a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 14 Jan 2015 16:40:37 +0100 Subject: [PATCH] keymap: Fix unused variable warning. These constants are not used when building on the host, move them inside the appropriate ifdef. --- src/bin/keymap/Keymap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/keymap/Keymap.cpp b/src/bin/keymap/Keymap.cpp index bb2bec31e8..5a1ad0c5a0 100644 --- a/src/bin/keymap/Keymap.cpp +++ b/src/bin/keymap/Keymap.cpp @@ -805,10 +805,10 @@ Keymap::_SaveSourceText(FILE* file) { #endif +#ifdef HAIKU_TARGET_PLATFORM_HAIKU static const rgb_color kCommentColor = (rgb_color){200, 92, 92, 255}; static const rgb_color kTextColor = (rgb_color){0, 0, 0, 255}; -#ifdef HAIKU_TARGET_PLATFORM_HAIKU BFont font = *be_fixed_font; if (runs != NULL) {