changeset 34151:e175b87ae80f v9.1.0036

patch 9.1.0036: MS-Windows: Warning about unused variable Commit: https://github.com/vim/vim/commit/73e16c740676e11176685ba5490eff202dc8d938 Author: John Marriott <basilisk@internode.on.net> Date: Wed Jan 17 20:16:05 2024 +0100 patch 9.1.0036: MS-Windows: Warning about unused variable 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>
author Christian Brabandt <cb@256bit.org>
date Wed, 17 Jan 2024 20:30:07 +0100
parents c2a3b642d4cb
children 8c3b58e92292
files src/term.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -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.
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    36,
+/**/
     35,
 /**/
     34,