Fix -Wreturn-type

../variable.c: In function ‘iterate_over_shapes_with_callback’:
../variable.c:2189:1: warning: control reaches end of non-void function [-Wreturn-type]
 2189 | }
      | ^
This commit is contained in:
Takashi Kokubun 2025-05-08 10:46:08 -07:00
parent c18bedcdbb
commit c750856367

View File

@ -2183,6 +2183,7 @@ iterate_over_shapes_with_callback(rb_shape_t *shape, rb_ivar_foreach_callback_fu
case SHAPE_FROZEN: case SHAPE_FROZEN:
return iterate_over_shapes_with_callback(rb_shape_get_parent(shape), callback, itr_data); return iterate_over_shapes_with_callback(rb_shape_get_parent(shape), callback, itr_data);
case SHAPE_OBJ_TOO_COMPLEX: case SHAPE_OBJ_TOO_COMPLEX:
default:
rb_bug("Unreachable"); rb_bug("Unreachable");
UNREACHABLE_RETURN(false); UNREACHABLE_RETURN(false);
} }