On 30-Dec-2022 22:16, Bram Moolenaar wrote:
Patch 9.0.1111
Problem:    Termcap entries for RGB colors are not set automatically.
Solution:   Always set the termcap entries when +termguicolors is enabled.
Files:      src/term.c


After this patch, msys2-64 (clang 15.0.5) gives this warning:
<snip>
clang -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO -pipe -Wall -O3 -fomit-frame-pointer -fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD term.c -o gobjx86-64/term.o term.c:1685:1: warning: unused function 'term_strings_not_set' [-Wunused-function]
term_strings_not_set(enum SpecialKey idx)
^
1 warning generated.
</snip>


The attached patch tries to fix it.

Cheers
John

--
--
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/87b39efd-3d75-7311-6984-3ac60574a703%40internode.on.net.
--- term.c.orig 2022-12-31 05:27:59.650553400 +1100
+++ term.c      2022-12-31 05:46:33.375447100 +1100
@@ -1678,6 +1678,7 @@
 };
 #endif
 
+#if defined(HAVE_TGETENT) || defined(FEAT_TERMGUICOLORS)
 /*
  * Return TRUE if "term_strings[idx]" was not set.
  */
@@ -1686,6 +1687,7 @@
 {
     return TERM_STR(idx) == NULL || TERM_STR(idx) == empty_option;
 }
+#endif
 
 #ifdef HAVE_TGETENT
 /*

Raspunde prin e-mail lui