1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress unused-function warnings

Calls with a constant argument should be optimized away.
This commit is contained in:
Nobuyoshi Nakada 2020-08-10 16:54:09 +09:00
parent 9260b0aece
commit c355fa72d4
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -8948,6 +8948,11 @@ rb_ary_deconstruct(VALUE ary)
void
Init_Array(void)
{
if (should_be_T_ARRAY(Qnil)) {
should_not_be_shared_and_embedded(Qnil);
UNREACHABLE;
}
#undef rb_intern
#define rb_intern(str) rb_intern_const(str)