mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Disable -Wswitch warning when VM_CHECK_MODE
This commit is contained in:
parent
717680f197
commit
cfe0e660f4
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue