mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
c18bedcdbb
commit
c750856367
1 changed files with 1 additions and 0 deletions
|
@ -2183,6 +2183,7 @@ iterate_over_shapes_with_callback(rb_shape_t *shape, rb_ivar_foreach_callback_fu
|
|||
case SHAPE_FROZEN:
|
||||
return iterate_over_shapes_with_callback(rb_shape_get_parent(shape), callback, itr_data);
|
||||
case SHAPE_OBJ_TOO_COMPLEX:
|
||||
default:
|
||||
rb_bug("Unreachable");
|
||||
UNREACHABLE_RETURN(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue