]> granicus.if.org Git - vim/commitdiff
patch 8.0.1849: compiler warning for unused arguments, missing prototype v8.0.1849
authorBram Moolenaar <Bram@vim.org>
Thu, 17 May 2018 11:11:46 +0000 (13:11 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 17 May 2018 11:11:46 +0000 (13:11 +0200)
Problem:    compiler warning for unused arguments and missing prototype
Solution:   Add UNUSED.  Add static.

src/if_ruby.c
src/mbyte.c
src/version.c

index 5905424a3eb264e03cbf43072550e6354674370c..eb79077bdaf7c434998905bcf7a2d16d0a130322 100644 (file)
@@ -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;
index 6d21f113e94f295a779dfffada78a84f3694290d..b79783527a86f5beb52891b5143e743616b788d2 100644 (file)
@@ -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
index 9697d8eaf6a8696ff33328318e10aafe93b54247..fa7031fe48cc647d9c185ce95c93b54f95247dc0 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1849,
 /**/
     1848,
 /**/