summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-03 23:50:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-03 23:50:41 +0000
commit257bf9c0d07772b201b592eb5e19df80cd459957 (patch)
tree2760c11d9e96abecf5a35f79afb65cbcccc16f6e
parent0e9878811d7208ebe4b0352b216062661223afea (diff)
ruby.h: unused parameter
* include/ruby/ruby.h (rb_scan_args_set): remove unused parameter for more pedantic extension libraries. [ruby-core:79399] [Feature #13184] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--include/ruby/ruby.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 06524c1..6144c67 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2326,17 +2326,17 @@ rb_scan_args_end_idx(const char *fmt)
rb_scan_args_f_var(fmt), \
rb_scan_args_f_hash(fmt), \
rb_scan_args_f_block(fmt), \
- rb_scan_args_verify(fmt, varc), vars)
+ (rb_scan_args_verify(fmt, varc), vars))
ALWAYS_INLINE(static int
rb_scan_args_set(int argc, const VALUE *argv,
int n_lead, int n_opt, int n_trail,
int f_var, int f_hash, int f_block,
- int varc, VALUE *vars[]));
+ VALUE *vars[]));
inline int
rb_scan_args_set(int argc, const VALUE *argv,
int n_lead, int n_opt, int n_trail,
int f_var, int f_hash, int f_block,
- int varc, VALUE *vars[])
+ VALUE *vars[])
{
int i, argi = 0, vari = 0;
VALUE *var, hash = Qnil;