From: Bram Moolenaar Date: Thu, 22 Dec 2022 21:06:41 +0000 (+0000) Subject: patch 9.0.1088: clang warns for unused variable X-Git-Tag: v9.0.1088 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fca133eb78ce25531da394db904c4fa8d40b35c;p=vim patch 9.0.1088: clang warns for unused variable Problem: Clang warns for unused variable. Solution: Adjust #ifdef. (John Marriott) --- diff --git a/src/os_win32.c b/src/os_win32.c index 4b23b1d1c..f12e75f11 100644 --- 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(); } diff --git a/src/version.c b/src/version.c index bcbc76000..a7fd8d8e8 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1088, /**/ 1087, /**/