changeset 26014:09a273f0af05 v8.2.3541

patch 8.2.3541: compiler warning for unused variable in tiny version Commit: https://github.com/vim/vim/commit/731fba1081079d5c0251fca2626043ce6e86b1f2 Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 19 Oct 2021 21:30:04 +0200
parents 70ae2f2ee992
children bfeb39cdc0fe
files src/highlight.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 
--- 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,