mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove return
The return type of the mrb_objspace_each_objects function is void. So this return statement with an expression is unnecessary and also violates a constraint. From C99 §6.8.6.4: >A return statement with an expression shall not appear >in a function whose return type is void.
This commit is contained in:
@@ -1425,7 +1425,7 @@ gc_each_objects(mrb_state *mrb, mrb_gc *gc, mrb_each_object_callback *callback,
|
||||
void
|
||||
mrb_objspace_each_objects(mrb_state *mrb, mrb_each_object_callback *callback, void *data)
|
||||
{
|
||||
return gc_each_objects(mrb, &mrb->gc, callback, data);
|
||||
gc_each_objects(mrb, &mrb->gc, callback, data);
|
||||
}
|
||||
|
||||
#ifdef GC_TEST
|
||||
|
||||
Reference in New Issue
Block a user