ruby-changes:62544
From: Nobuyoshi <ko1@a...>
Date: Mon, 10 Aug 2020 17:49:50 +0900 (JST)
Subject: [ruby-changes:62544] c355fa72d4 (master): Suppress unused-function warnings
https://git.ruby-lang.org/ruby.git/commit/?id=c355fa72d4 From c355fa72d4e356378a8b03a67432b52bafcc308b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 10 Aug 2020 16:54:09 +0900 Subject: Suppress unused-function warnings Calls with a constant argument should be optimized away. diff --git a/array.c b/array.c index 1f8781b..ce194d9 100644 --- a/array.c +++ b/array.c @@ -8948,6 +8948,11 @@ rb_ary_deconstruct(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L8948 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/