From e18e2a44f0b5b716ac17e6104ccf6313780669b1 Mon Sep 17 00:00:00 2001 From: cremno Date: Fri, 6 Nov 2015 18:10:59 +0100 Subject: remove return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gc.c b/src/gc.c index e93e36f0b..2b0eb8885 100644 --- a/src/gc.c +++ b/src/gc.c @@ -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 -- cgit v1.2.3