summaryrefslogtreecommitdiff
path: root/src/if_ruby.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-05-22 16:20:57 +0000
committerBram Moolenaar <Bram@vim.org>2009-05-22 16:20:57 +0000
commitcd8b20a91474d576cb5db319fc3b2a32ca20b6fe (patch)
tree06e15597d223c73d62c15e86f280372835d96562 /src/if_ruby.c
parent4bdbbf706634d8ab4b84801f0a30fd4eacbc901c (diff)
downloadvim-cd8b20a91474d576cb5db319fc3b2a32ca20b6fe.zip
updated for version 7.2-185
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 74de2f066..0fed2c018 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -492,7 +492,7 @@ static void error_print(int state)
}
}
-static VALUE vim_message(VALUE self, VALUE str)
+static VALUE vim_message(VALUE self UNUSED, VALUE str)
{
char *buff, *p;
@@ -505,20 +505,20 @@ static VALUE vim_message(VALUE self, VALUE str)
return Qnil;
}
-static VALUE vim_set_option(VALUE self, VALUE str)
+static VALUE vim_set_option(VALUE self UNUSED, VALUE str)
{
do_set((char_u *)STR2CSTR(str), 0);
update_screen(NOT_VALID);
return Qnil;
}
-static VALUE vim_command(VALUE self, VALUE str)
+static VALUE vim_command(VALUE self UNUSED, VALUE str)
{
do_cmdline_cmd((char_u *)STR2CSTR(str));
return Qnil;
}
-static VALUE vim_evaluate(VALUE self, VALUE str)
+static VALUE vim_evaluate(VALUE self UNUSED, VALUE str)
{
#ifdef FEAT_EVAL
char_u *value = eval_to_string((char_u *)STR2CSTR(str), NULL, TRUE);
@@ -580,7 +580,7 @@ static VALUE buffer_s_count()
return INT2NUM(n);
}
-static VALUE buffer_s_aref(VALUE self, VALUE num)
+static VALUE buffer_s_aref(VALUE self UNUSED, VALUE num)
{
buf_T *b;
int n = NUM2INT(num);
@@ -629,7 +629,9 @@ static VALUE get_buffer_line(buf_T *buf, linenr_T n)
return line ? rb_str_new2(line) : Qnil;
}
rb_raise(rb_eIndexError, "index %d out of buffer", n);
+#ifndef __GNUC__
return Qnil; /* For stop warning */
+#endif
}
static VALUE buffer_aref(VALUE self, VALUE num)
@@ -668,7 +670,9 @@ static VALUE set_buffer_line(buf_T *buf, linenr_T n, VALUE str)
else
{
rb_raise(rb_eIndexError, "index %d out of buffer", n);
+#ifndef __GNUC__
return Qnil; /* For stop warning */
+#endif
}
return str;
}
@@ -789,7 +793,7 @@ static VALUE line_s_current()
return get_buffer_line(curbuf, curwin->w_cursor.lnum);
}
-static VALUE set_current_line(VALUE self, VALUE str)
+static VALUE set_current_line(VALUE self UNUSED, VALUE str)
{
return set_buffer_line(curbuf, curwin->w_cursor.lnum, str);
}
@@ -815,7 +819,7 @@ static VALUE window_s_count()
#endif
}
-static VALUE window_s_aref(VALUE self, VALUE num)
+static VALUE window_s_aref(VALUE self UNUSED, VALUE num)
{
win_T *w;
int n = NUM2INT(num);
@@ -897,7 +901,7 @@ static VALUE window_set_cursor(VALUE self, VALUE pos)
return Qnil;
}
-static VALUE f_p(int argc, VALUE *argv, VALUE self)
+static VALUE f_p(int argc, VALUE *argv, VALUE self UNUSED)
{
int i;
VALUE str = rb_str_new("", 0);