From: Bram Moolenaar Date: Tue, 19 Oct 2021 19:24:34 +0000 (+0100) Subject: patch 8.2.3541: compiler warning for unused variable in tiny version X-Git-Tag: v8.2.3541 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=731fba1081079d5c0251fca2626043ce6e86b1f2;p=vim 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) --- diff --git a/src/highlight.c b/src/highlight.c index a964acda8..76d9a7e82 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; diff --git a/src/version.c b/src/version.c index c430ff170..b4e342d3b 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3541, /**/ 3540, /**/