summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-12-30 19:54:53 +0000
committerBram Moolenaar <Bram@vim.org>2022-12-30 19:54:53 +0000
commit770713794a59f8f315f331025a15e3c25aa5ddfe (patch)
tree0cad64f20fdbda8b75437d7910a1e7818056d0f4
parented0c1d5d4b30d03b26ff08841f6da2ddf44025a7 (diff)
patch 9.0.1116: compiler may complain about an unused functionv9.0.1116
Problem: Compiler may complain about an unused function. Solution: Add #ifdef. (John Marriott)
-rw-r--r--src/term.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index 6410a574e1..e83c198bdf 100644
--- a/src/term.c
+++ b/src/term.c
@@ -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
/*
diff --git a/src/version.c b/src/version.c
index 3166491beb..429d76c4c4 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 */
/**/
+ 1116,
+/**/
1115,
/**/
1114,