]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1457: compile warning with tabpanelopt v9.1.1457
authorJohn Marriott <basilisk@internode.on.net>
Thu, 12 Jun 2025 19:37:18 +0000 (21:37 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 12 Jun 2025 19:37:18 +0000 (21:37 +0200)
Problem:  compile warning with tabpanelopt
Solution: declare arg as UNUSED (John Marriott)

closes: #17528

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/option.c
src/optionstr.c
src/version.c

index 85c3705536ba3bf25302c392b2b809d7ccb46bfe..150e5627f5dffed1f2f46d34df8711f02a79a20a 100644 (file)
@@ -8847,7 +8847,7 @@ option_set_callback_func(char_u *optval UNUSED, callback_T *optcb UNUSED)
  * Process the new 'showtabpanel' option value.
  */
     char *
-did_set_showtabpanel(optset_T *args)
+did_set_showtabpanel(optset_T *args UNUSED)
 {
     shell_new_columns();
     return NULL;
index d667e535809d28f6eda09079a0488390ee18a401..e82654a8ef048349d60c12e71878792c6ae02184 100644 (file)
@@ -3565,7 +3565,7 @@ did_set_rulerformat(optset_T *args)
  * Process the new 'tabpanelopt' option value.
  */
     char *
-did_set_tabpanelopt(optset_T *args)
+did_set_tabpanelopt(optset_T *args UNUSED)
 {
     if (tabpanelopt_changed() == FAIL)
        return e_invalid_argument;
index a7b31cad5b7009f29514215171bf73e91e1bba20..a9e73850fb396df1a999a699bac61ab455177719 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1457,
 /**/
     1456,
 /**/