# HG changeset patch # User Bram Moolenaar # Date 1634671804 -7200 # Node ID 09a273f0af0505db95867ed865fa7b1990bccc77 # Parent 70ae2f2ee9924a684b1205fa01861497ddbfdd2a patch 8.2.3541: compiler warning for unused variable in tiny version Commit: https://github.com/vim/vim/commit/731fba1081079d5c0251fca2626043ce6e86b1f2 Author: Bram Moolenaar Date: Tue Oct 19 20:24:34 2021 +0100 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3541, +/**/ 3540, /**/ 3539,