]> granicus.if.org Git - vim/commitdiff
patch 9.0.1116: compiler may complain about an unused function v9.0.1116
authorBram Moolenaar <Bram@vim.org>
Fri, 30 Dec 2022 19:54:53 +0000 (19:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 30 Dec 2022 19:54:53 +0000 (19:54 +0000)
Problem:    Compiler may complain about an unused function.
Solution:   Add #ifdef. (John Marriott)

src/term.c
src/version.c

index 6410a574e1b8aff45ecf613892d8a1de05e0f531..e83c198bdf2e0c2995e6b51f3e2a3751bc39de8c 100644 (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
 /*
index 3166491beb3106d84a3ec5f52cd9c3d8285379f5..429d76c4c4f77c3d1bf0a7c673cabe8adb625079 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1116,
 /**/
     1115,
 /**/