Commit: patch 9.1.1457: compile warning with tabpanelopt

6 views
Skip to first unread message

Christian Brabandt

unread,
Jun 12, 2025, 3:45:14 PM6/12/25
to vim...@googlegroups.com
patch 9.1.1457: compile warning with tabpanelopt

Commit: https://github.com/vim/vim/commit/a9657c895277fe7231f5b7d9e1c755f804fddc1c
Author: John Marriott <basi...@internode.on.net>
Date: Thu Jun 12 21:37:18 2025 +0200

patch 9.1.1457: compile warning with tabpanelopt

Problem: compile warning with tabpanelopt
Solution: declare arg as UNUSED (John Marriott)

closes: #17528

Signed-off-by: John Marriott <basi...@internode.on.net>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/option.c b/src/option.c
index 85c370553..150e5627f 100644
--- a/src/option.c
+++ b/src/option.c
@@ -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;
diff --git a/src/optionstr.c b/src/optionstr.c
index d667e5358..e82654a8e 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index a7b31cad5..a9e73850f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -709,6 +709,8 @@ static char *(features[]) =

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