From 4377f9bab6b511699c50ba4e8eaf1b5abcf30a68 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 4 Apr 2008 16:30:56 +0000 Subject: [PATCH] fixed warnings [r19128] --- include/libfirm/irgopt.h | 2 +- ir/ana/analyze_irg_args.c | 1 - ir/opt/opt_inline.c | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/libfirm/irgopt.h b/include/libfirm/irgopt.h index bc72f6658..30d63d2d2 100644 --- a/include/libfirm/irgopt.h +++ b/include/libfirm/irgopt.h @@ -191,7 +191,7 @@ void inline_leave_functions(int maxsize, int leavesize, int size, int ignore_run * * @param threshold inlining threshold */ -void inline_functions(unsigned inline_threshold); +void inline_functions(int inline_threshold); /** Code Placement. * diff --git a/ir/ana/analyze_irg_args.c b/ir/ana/analyze_irg_args.c index 1769fd76f..bb1c80b80 100644 --- a/ir/ana/analyze_irg_args.c +++ b/ir/ana/analyze_irg_args.c @@ -85,7 +85,6 @@ static unsigned analyze_arg(ir_node *arg, unsigned bits) { /* Hmm: not sure what this is, most likely a read */ bits |= ptr_access_read; } else { - ir_op *op = get_irn_op(ptr); ir_entity *meth_ent; if (is_Global(ptr)) { diff --git a/ir/opt/opt_inline.c b/ir/opt/opt_inline.c index 27ee9e9e3..38b176361 100644 --- a/ir/opt/opt_inline.c +++ b/ir/opt/opt_inline.c @@ -1692,10 +1692,10 @@ static int calc_inline_benefice(ir_node *call, ir_graph *callee) { } /** - * Heuristic inliner. Calculates a benifiz value for every call and inlines + * Heuristic inliner. Calculates a benifice value for every call and inlines * those calls with a value higher than the threshold. */ -void inline_functions(unsigned inline_threshold) { +void inline_functions(int inline_threshold) { inline_irg_env *env; ir_graph *irg; int i, n_irgs; -- 2.20.1