Skip to content

Commit

Permalink
patch 9.0.1116: compiler may complain about an unused function
Browse files Browse the repository at this point in the history
Problem:    Compiler may complain about an unused function.
Solution:   Add #ifdef. (John Marriott)
  • Loading branch information
brammool committed Dec 30, 2022
1 parent ed0c1d5 commit 7707137
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/term.c
Expand Up @@ -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.
*/
Expand All @@ -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
/*
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1116,
/**/
1115,
/**/
Expand Down

0 comments on commit 7707137

Please sign in to comment.