1
0
forked from aniani/vim

patch 9.0.1116: compiler may complain about an unused function

Problem:    Compiler may complain about an unused function.
Solution:   Add #ifdef. (John Marriott)
This commit is contained in:
Bram Moolenaar
2022-12-30 19:54:53 +00:00
parent ed0c1d5d4b
commit 770713794a
2 changed files with 4 additions and 0 deletions

View File

@@ -1678,6 +1678,7 @@ static char *(key_names[]) =
};
#endif
#if defined(HAVE_TGETENT) || defined(FEAT_TERMGUICOLORS)
/*
* Return TRUE if "term_strings[idx]" was not set.
*/
@@ -1686,6 +1687,7 @@ term_strings_not_set(enum SpecialKey idx)
{
return TERM_STR(idx) == NULL || TERM_STR(idx) == empty_option;
}
#endif
#ifdef HAVE_TGETENT
/*

View File

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