Patch 9.0.1116 (after 9.0.1111)
Problem:    Compiler may complain about an unused function.
Solution:   Add #ifdef. (John Marriott)
Files:      src/term.c


*** ../vim-9.0.1115/src/term.c  2022-12-30 11:15:56.462953467 +0000
--- src/term.c  2022-12-30 19:54:33.830727168 +0000
***************
*** 1678,1683 ****
--- 1678,1684 ----
  };
  #endif
  
+ #if defined(HAVE_TGETENT) || defined(FEAT_TERMGUICOLORS)
  /*
   * Return TRUE if "term_strings[idx]" was not set.
   */
***************
*** 1686,1691 ****
--- 1687,1693 ----
  {
      return TERM_STR(idx) == NULL || TERM_STR(idx) == empty_option;
  }
+ #endif
  
  #ifdef HAVE_TGETENT
  /*
*** ../vim-9.0.1115/src/version.c       2022-12-30 18:07:41.694107568 +0000
--- src/version.c       2022-12-30 19:54:09.250735371 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1116,
  /**/

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221230195523.2C0491C0AA4%40moolenaar.net.

Raspunde prin e-mail lui