changeset 31682:c55341fea626 v9.0.1173

patch 9.0.1173: compiler warning for unused variable on non-Unix systems Commit: https://github.com/vim/vim/commit/a47c0fb4adb43d16601e9d3bd0c2b22fdedab5b4 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 10 19:17:11 2023 +0000 patch 9.0.1173: compiler warning for unused variable on non-Unix systems Problem: Compiler warning for unused variable on non-Unix systems. Solution: Move #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Tue, 10 Jan 2023 20:30:04 +0100
parents fd9c778c9452
children 1161c982e402
files src/term.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -2159,6 +2159,7 @@ set_termname(char_u *term)
     init_term_props(FALSE);
 #endif
 
+#if defined(UNIX) || defined(VMS)
     // If the first number in t_XM is 1006 then the terminal will support SGR
     // mouse reporting.
     int did_set_ttym = FALSE;
@@ -2175,7 +2176,6 @@ set_termname(char_u *term)
 	}
     }
 
-#if defined(UNIX) || defined(VMS)
     /*
      * For Unix, set the 'ttymouse' option to the type of mouse to be used.
      * The termcode for the mouse is added as a side effect in option.c.
--- 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 */
 /**/
+    1173,
+/**/
     1172,
 /**/
     1171,