ruby-changes:60982
From: Nobuyoshi <ko1@a...>
Date: Sun, 3 May 2020 00:16:22 +0900 (JST)
Subject: [ruby-changes:60982] cfe0e660f4 (master): Disable -Wswitch warning when VM_CHECK_MODE
https://git.ruby-lang.org/ruby.git/commit/?id=cfe0e660f4 From cfe0e660f4ae7c8366cd8891c00e2eb303857f63 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 3 May 2020 00:15:56 +0900 Subject: Disable -Wswitch warning when VM_CHECK_MODE diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 70c957c..0fb2084 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -96,6 +96,8 @@ callable_class_p(VALUE klass) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L96 #if VM_CHECK_MODE >= 2 if (!klass) return FALSE; switch (RB_BUILTIN_TYPE(klass)) { + default: + break; case T_ICLASS: if (!RB_TYPE_P(RCLASS_SUPER(klass), T_MODULE)) break; case T_MODULE: -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/