ruby-changes:48280
From: nobu <ko1@a...>
Date: Tue, 24 Oct 2017 17:13:18 +0900 (JST)
Subject: [ruby-changes:48280] nobu:r60395 (trunk): vm_eval.c: all value type cases
nobu 2017-10-24 17:13:13 +0900 (Tue, 24 Oct 2017) New Revision: 60395 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60395 Log: vm_eval.c: all value type cases * vm_eval.c (rb_type_str): ensure all value types are covered. missed types would be warned by -Wswitch option of gcc. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 60394) +++ vm_eval.c (revision 60395) @@ -470,9 +470,10 @@ rb_type_str(enum ruby_value_type type) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L470 type_case(T_NODE) type_case(T_ICLASS) type_case(T_ZOMBIE) - default: return NULL; + case T_MASK: break; } #undef type_case + return NULL; } NORETURN(static void uncallable_object(VALUE recv, ID mid)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/