0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

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)
This commit is contained in:
Bram Moolenaar 2023-01-10 19:17:11 +00:00
parent 79c11e399b
commit a47c0fb4ad
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1173,
/**/
1172,
/**/