Commit: patch 9.0.1993: warning about unused function definition

4 views
Skip to first unread message

Christian Brabandt

unread,
Oct 5, 2023, 4:30:09 PM10/5/23
to vim...@googlegroups.com
patch 9.0.1993: warning about unused function definition

Commit: https://github.com/vim/vim/commit/9960ebcacee5f430d61735991a0563858168ef2c
Author: Christian Brabandt <c...@256bit.org>
Date: Thu Oct 5 22:17:09 2023 +0200

patch 9.0.1993: warning about unused function definition

Problem: warning about unused function definition
Solution: add ifdefs

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

diff --git a/src/optionstr.c b/src/optionstr.c
index 6b40dcd70..202e93e57 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -849,6 +849,7 @@ expand_set_opt_generic(
return ret;
}

+# if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_GTK)
static garray_T *expand_cb_ga;
static optexpand_T *expand_cb_args;

@@ -938,6 +939,7 @@ expand_set_opt_callback(
*numMatches = ga.ga_len;
return OK;
}
+#endif

/*
* Expand an option which is a list of flags.
diff --git a/src/version.c b/src/version.c
index 2bb134a3b..7c5f3c4fe 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

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