From c355fa72d4e356378a8b03a67432b52bafcc308b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 10 Aug 2020 16:54:09 +0900 Subject: [PATCH] Suppress unused-function warnings Calls with a constant argument should be optimized away. --- array.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/array.c b/array.c index 1f8781bcf4..ce194d96cf 100644 --- a/array.c +++ b/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)