1
0
Fork 0
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:
Nobuyoshi Nakada 2020-05-21 11:55:55 +09:00
parent 3eb3f7bb8c
commit 62b47196e4
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -345,6 +345,7 @@ rb_scan_args_set(int kw_flag, int argc, const VALUE *argv,
argc_error:
rb_error_arity(argc, n_mand, f_var ? UNLIMITED_ARGUMENTS : n_mand + n_opt);
UNREACHABLE_RETURN(-1);
#undef rb_scan_args_next_param
}