From 731fba1081079d5c0251fca2626043ce6e86b1f2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 19 Oct 2021 20:24:34 +0100 Subject: patch 8.2.3541: compiler warning for unused variable in tiny version Problem: Compiler warning for unused variable in tiny version. Solution: Add #ifdef. (John Marriott) --- src/highlight.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/highlight.c') diff --git a/src/highlight.c b/src/highlight.c index a964acda8d..76d9a7e82e 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -1108,7 +1108,9 @@ highlight_set_guifg( int *do_colors UNUSED, int init) { +# if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) long i; +# endif char_u **namep; int did_change = FALSE; @@ -1175,7 +1177,9 @@ highlight_set_guibg( int *do_colors UNUSED, int init) { +# if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) int i; +# endif char_u **namep; int did_change = FALSE; -- cgit v1.2.3