summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-10 19:17:11 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-10 19:17:11 +0000
commita47c0fb4adb43d16601e9d3bd0c2b22fdedab5b4 (patch)
tree0a7f41b8533a3eb70cdcfb3076152c7eec5164a0
parent79c11e399be3d96ed6d1c7458b1380e878ec717b (diff)
downloadvim-git-a47c0fb4adb43d16601e9d3bd0c2b22fdedab5b4.tar.gz
patch 9.0.1173: compiler warning for unused variable on non-Unix systemsv9.0.1173
Problem: Compiler warning for unused variable on non-Unix systems. Solution: Move #ifdef. (John Marriott)
-rw-r--r--src/term.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 43d0db678..0b902c94e 100644
--- 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.
diff --git a/src/version.c b/src/version.c
index 6ab7b95de..ebe699f44 100644
--- 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,