]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0764: Compiler warning about unused function v9.2.0764
authorChristian Brabandt <cb@256bit.org>
Thu, 2 Jul 2026 17:52:00 +0000 (17:52 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 2 Jul 2026 17:52:00 +0000 (17:52 +0000)
Problem:  Compiler warning about unused function
          (Tony Mechelynck, after v9.2.0762)
Solution: Add ifdefs

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/optionstr.c
src/version.c

index d2ce36e76f53c81d4be543351a986c77df352775..b656288cb50aa0ae9702242acc107b131991eef6 100644 (file)
@@ -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)
index 910a5b3910f9924961fdfa3333c04fff3314b5e8..09f4dc2c4766f84c88534b03a17826c29acb06a0 100644 (file)
@@ -759,6 +759,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    764,
 /**/
     763,
 /**/