]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0036: MS-Windows: Warning about unused variable v9.1.0036
authorJohn Marriott <basilisk@internode.on.net>
Wed, 17 Jan 2024 19:16:05 +0000 (20:16 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 17 Jan 2024 19:19:10 +0000 (20:19 +0100)
Problem:  MS-Windows: Warning about unused variable
          (after 9.1.0030, John Marriott)
Solution: Adjust #ifdef and test for HAVE_TGETENT
          (John Marriott)

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/term.c
src/version.c

index 08afa0458771fda61f4680c6ddc6d154297deee0..44d7443dd1b4b5357e8c3090d527c23ec13511a2 100644 (file)
@@ -637,11 +637,13 @@ static tcap_entry_T builtin_rgb[] = {
 };
 #endif
 
+#ifdef HAVE_TGETENT
 static tcap_entry_T special_term[] = {
     // These are printf strings, not terminal codes.
     {(int)KS_CF,       "\033[%dm"},
     {(int)KS_NAME,     NULL}  // end marker
 };
+#endif
 
 /*
  * iris-ansi for Silicon Graphics machines.
index 1263ee8cd0f7898883a30cc9dd0ee53901c53a9d..bcc43f2068516a54be07cc5c401fada6ada1f916 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    36,
 /**/
     35,
 /**/