changeset 31567:ef9591271746 v9.0.1116

patch 9.0.1116: compiler may complain about an unused function Commit: https://github.com/vim/vim/commit/770713794a59f8f315f331025a15e3c25aa5ddfe Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 30 19:54:53 2022 +0000 patch 9.0.1116: compiler may complain about an unused function Problem: Compiler may complain about an unused function. Solution: Add #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Dec 2022 21:00:15 +0100
parents 3f94901164c0
children d2f94d284cfd
files src/term.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 /*
--- 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,