diff options
Diffstat (limited to 'ext/objspace')
-rw-r--r-- | ext/objspace/objspace_dump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index d753b48a80..7dd0731c43 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -135,6 +135,7 @@ obj_type(VALUE obj) CASE_TYPE(NODE); CASE_TYPE(ZOMBIE); #undef CASE_TYPE + default: break; } return "UNKNOWN"; } @@ -315,6 +316,9 @@ dump_object(VALUE obj, struct dump_config *dc) case T_ZOMBIE: dump_append(dc, "}\n"); return; + + default: + break; } rb_objspace_reachable_objects_from(obj, reachable_object_i, dc); |