summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-17 13:11:46 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-17 13:11:46 +0200
commit0b39464f69ae8ca9acf6e5bff4435fd0693e22f6 (patch)
tree3c9a69c1712829682d2119cc5815761442910977
parent4d6cd291cec668b991f2b43d76c6feab8b2e7d98 (diff)
patch 8.0.1849: compiler warning for unused arguments, missing prototypev8.0.1849
Problem: compiler warning for unused arguments and missing prototype Solution: Add UNUSED. Add static.
-rw-r--r--src/if_ruby.c2
-rw-r--r--src/mbyte.c2
-rw-r--r--src/version.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 5905424a3e..eb79077bda 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -828,7 +828,7 @@ void ex_rubydo(exarg_T *eap)
}
}
-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 6d21f113e9..b79783527a 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -6506,7 +6506,7 @@ im_set_active(int active_arg)
# 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 9697d8eaf6..fa7031fe48 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1849,
+/**/
1848,
/**/
1847,