]> granicus.if.org Git - vim/commitdiff
patch 9.0.1088: clang warns for unused variable v9.0.1088
authorBram Moolenaar <Bram@vim.org>
Thu, 22 Dec 2022 21:06:41 +0000 (21:06 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 22 Dec 2022 21:06:41 +0000 (21:06 +0000)
Problem:    Clang warns for unused variable.
Solution:   Adjust #ifdef. (John Marriott)

src/os_win32.c
src/version.c

index 4b23b1d1c26663172423f718597ea6c32d75cfee..f12e75f1140a2e445eb4faaedde7a43752691f09 100644 (file)
@@ -257,7 +257,9 @@ static char_u *exe_path = NULL;
 
 static BOOL win8_or_later = FALSE;
 static BOOL win10_22H2_or_later = FALSE;
+#if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL)
 static BOOL use_alternate_screen_buffer = FALSE;
+#endif
 
 /*
  * Get version number including build number
@@ -8395,7 +8397,7 @@ vtp_init(void)
     }
 # endif
     use_alternate_screen_buffer = win10_22H2_or_later && p_rs && vtp_working
-                                               && !mch_getenv("VIM_TERMINAL");
+                                               && !mch_getenv("VIM_TERMINAL");
     set_console_color_rgb();
 }
 
index bcbc760005bc3ea91da9af9718bdc09b91ed8c69..a7fd8d8e899391d18212c5a66c26e67d1d111214 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1088,
 /**/
     1087,
 /**/