mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 20:44:20 +00:00
Disable -Wswitch warning when VM_CHECK_MODE
This commit is contained in:
parent
717680f197
commit
cfe0e660f4
@ -96,6 +96,8 @@ callable_class_p(VALUE klass)
|
||||
#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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user