Commit: patch 9.2.0764: Compiler warning about unused function

1 view
Skip to first unread message

Christian Brabandt

unread,
2:00 PM (3 hours ago) 2:00 PM
to vim...@googlegroups.com
patch 9.2.0764: Compiler warning about unused function

Commit: https://github.com/vim/vim/commit/1a43d123f4b42d16726cf81a75ed16b7a5412525
Author: Christian Brabandt <c...@256bit.org>
Date: Thu Jul 2 17:52:00 2026 +0000

patch 9.2.0764: Compiler warning about unused function

Problem: Compiler warning about unused function
(Tony Mechelynck, after v9.2.0762)
Solution: Add ifdefs

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/optionstr.c b/src/optionstr.c
index d2ce36e76..b656288cb 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -1131,6 +1131,7 @@ did_set_ambiwidth(optset_T *args UNUSED)
return check_chars_options();
}

+#if defined(FEAT_TABPANEL) || defined(FEAT_DIFF) || defined(FEAT_PROP_POPUP)
static bool
completing_value_for_subopt(optexpand_T *args, char *name_suffix)
{
@@ -1140,6 +1141,7 @@ completing_value_for_subopt(optexpand_T *args, char *name_suffix)
return colon - args->oe_set_arg >= len
&& STRNCMP(colon - len, name_suffix, len) == 0;
}
+#endif

int
expand_set_ambiwidth(optexpand_T *args, int *numMatches, char_u ***matches)
diff --git a/src/version.c b/src/version.c
index 910a5b391..09f4dc2c4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 764,
/**/
763,
/**/
Reply all
Reply to author
Forward
0 new messages