mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added UNREACHABLE_RETURN
To get rid of a void function at the end of non-void function.
This commit is contained in:
parent
3eb3f7bb8c
commit
62b47196e4
1 changed files with 1 additions and 0 deletions
|
@ -345,6 +345,7 @@ rb_scan_args_set(int kw_flag, int argc, const VALUE *argv,
|
||||||
|
|
||||||
argc_error:
|
argc_error:
|
||||||
rb_error_arity(argc, n_mand, f_var ? UNLIMITED_ARGUMENTS : n_mand + n_opt);
|
rb_error_arity(argc, n_mand, f_var ? UNLIMITED_ARGUMENTS : n_mand + n_opt);
|
||||||
|
UNREACHABLE_RETURN(-1);
|
||||||
#undef rb_scan_args_next_param
|
#undef rb_scan_args_next_param
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue