changeset 31511:90d7dfb0003d v9.0.1088

patch 9.0.1088: clang warns for unused variable Commit: https://github.com/vim/vim/commit/9fca133eb78ce25531da394db904c4fa8d40b35c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 22 21:06:41 2022 +0000 patch 9.0.1088: clang warns for unused variable Problem: Clang warns for unused variable. Solution: Adjust #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Dec 2022 22:15:05 +0100
parents 121124b4334f
children eb5dcfa9eab0
files src/os_win32.c src/version.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -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();
 }
 
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1088,
+/**/
     1087,
 /**/
     1086,