patch 9.0.1743: Parameter of gui_gtk:gui_mch_browse incorrectly marked as UNUSED

1 view
Skip to first unread message

Christian Brabandt

unread,
Aug 19, 2023, 7:30:10 AM8/19/23
to vim...@googlegroups.com
patch 9.0.1743: Parameter of gui_gtk:gui_mch_browse incorrectly marked as UNUSED

Commit: https://github.com/vim/vim/commit/44a6b72d7f4561d4c002f0a8083587ac69222826
Author: Doug Kearns <dougk...@gmail.com>
Date: Sat Aug 19 13:13:11 2023 +0200

patch 9.0.1743: Parameter of gui_gtk:gui_mch_browse incorrectly marked as UNUSED

Problem: Parameter of gui_gtk:gui_mch_browse incorrectly marked as
UNUSED.
Solution: Remove UNUSED flag.

closes: #12841

Signed-off-by: Christian Brabandt <c...@256bit.org>
Co-authored-by: Doug Kearns <dougk...@gmail.com>

diff --git a/src/gui_gtk.c b/src/gui_gtk.c
index 6dbaf246b..69a9cae9f 100644
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -1239,10 +1239,10 @@ browse_destroy_cb(GtkWidget *widget UNUSED)
* dflt default name
* ext not used (extension added)
* initdir initial directory, NULL for current dir
- * filter not used (file name filter)
+ * filter file name filter
*/
char_u *
-gui_mch_browse(int saving UNUSED,
+gui_mch_browse(int saving,
char_u *title,
char_u *dflt,
char_u *ext UNUSED,
diff --git a/src/version.c b/src/version.c
index a30793d76..1ee8dd33a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -695,6 +695,8 @@ static char *(features[]) =

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