]> granicus.if.org Git - vim/commitdiff
patch 8.2.3541: compiler warning for unused variable in tiny version v8.2.3541
authorBram Moolenaar <Bram@vim.org>
Tue, 19 Oct 2021 19:24:34 +0000 (20:24 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 19 Oct 2021 19:24:34 +0000 (20:24 +0100)
Problem:    Compiler warning for unused variable in tiny version.
Solution:   Add #ifdef. (John Marriott)

src/highlight.c
src/version.c

index a964acda8ddb1cea6d9a648a1c05c05b135a1aff..76d9a7e82eb6ce52408639e44fb9a7dad3a15d3a 100644 (file)
@@ -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;
 
index c430ff1702df660fc7854b2328a308af23611a29..b4e342d3b4263180c2410731d265888dcdd346dd 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3541,
 /**/
     3540,
 /**/