Skip to content

Commit 0b39464

Browse files
committed
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.
1 parent 4d6cd29 commit 0b39464

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/if_ruby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ void ex_rubydo(exarg_T *eap)
828828
}
829829
}
830830

831-
VALUE rb_load_wrap(VALUE file_to_load)
831+
static VALUE rb_load_wrap(VALUE file_to_load)
832832
{
833833
rb_load(file_to_load, 0);
834834
return Qnil;

src/mbyte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6506,7 +6506,7 @@ im_set_active(int active_arg)
65066506

65076507
# ifdef FEAT_GUI
65086508
void
6509-
im_set_position(int row, int col)
6509+
im_set_position(int row UNUSED, int col UNUSED)
65106510
{
65116511
}
65126512
# endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1849,
764766
/**/
765767
1848,
766768
/**/

0 commit comments

Comments
 (0)