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:
parent
9260b0aece
commit
c355fa72d4
1 changed files with 5 additions and 0 deletions
5
array.c
5
array.c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue