patch 8.0.1849: compiler warning for unused arguments, missing prototype
Problem: compiler warning for unused arguments and missing prototype
Solution: Add UNUSED. Add static.
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 5905424..eb79077 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -828,7 +828,7 @@
}
}
-VALUE rb_load_wrap(VALUE file_to_load)
+static VALUE rb_load_wrap(VALUE file_to_load)
{
rb_load(file_to_load, 0);
return Qnil;
diff --git a/src/mbyte.c b/src/mbyte.c
index 6d21f11..b797835 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -6506,7 +6506,7 @@
# ifdef FEAT_GUI
void
-im_set_position(int row, int col)
+im_set_position(int row UNUSED, int col UNUSED)
{
}
# endif
diff --git a/src/version.c b/src/version.c
index 9697d8e..fa7031f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1849,
+/**/
1848,
/**/
1847,