From 506469735710453d90982d7e6053e533ca632d4c Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 19 Aug 2009 08:02:02 +0000 Subject: [PATCH] Use correct return type (void) for pass wrapper callbacks. [r26378] --- ir/lower/lower_dw.c | 4 ++-- ir/lower/lower_intrinsics.c | 3 +-- ir/opt/funccall.c | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ir/lower/lower_dw.c b/ir/lower/lower_dw.c index a0a060f89..eb9d17594 100644 --- a/ir/lower/lower_dw.c +++ b/ir/lower/lower_dw.c @@ -2694,12 +2694,12 @@ struct pass_t { /** * Creates a wrapper around lower_dw_ops(). */ -static int pass_wrapper(ir_prog *irp, void *context) { +static void pass_wrapper(ir_prog *irp, void *context) +{ struct pass_t *pass = context; (void)irp; lower_dw_ops(pass->param); - return 0; } /* pass_wrapper */ ir_prog_pass_t *lower_dw_ops_pass(const char *name, const lwrdw_param_t *param) { diff --git a/ir/lower/lower_intrinsics.c b/ir/lower/lower_intrinsics.c index 46133473d..41b9b20a2 100644 --- a/ir/lower/lower_intrinsics.c +++ b/ir/lower/lower_intrinsics.c @@ -170,13 +170,12 @@ struct pass_t { /** * Wrapper for running lower_intrinsics() as an ir_prog pass. */ -static int pass_wrapper(ir_prog *irp, void *context) +static void pass_wrapper(ir_prog *irp, void *context) { struct pass_t *pass = context; (void) irp; /* TODO: set current irp, or remove parameter */ lower_intrinsics(pass->list, pass->length, pass->part_block_used); /* probably this pass should not run again */ - return 0; } /* pass_wrapper */ /** diff --git a/ir/opt/funccall.c b/ir/opt/funccall.c index a22c91628..9c476c2ba 100644 --- a/ir/opt/funccall.c +++ b/ir/opt/funccall.c @@ -1084,12 +1084,12 @@ struct pass_t { /** * Wrapper for running optimize_funccalls() as an ir_prog pass. */ -static int pass_wrapper(ir_prog *irp, void *context) { +static void pass_wrapper(ir_prog *irp, void *context) +{ struct pass_t *pass = context; (void)irp; optimize_funccalls(pass->force_run, pass->callback); - return 0; } /* pass_wrapper */ /* Creates an ir_prog pass for optimize_funccalls. */ -- 2.20.1