From: Matthias Braun Date: Mon, 4 Sep 2006 12:55:43 +0000 (+0000) Subject: fix warnings X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=4e025f911bbfd8f3d2460f92cfbafad4be3ca85e;p=libfirm fix warnings --- diff --git a/ir/be/beifg.h b/ir/be/beifg.h index 390574bb7..eb619554f 100644 --- a/ir/be/beifg.h +++ b/ir/be/beifg.h @@ -59,7 +59,7 @@ typedef struct { int n_edges; } be_ifg_stat_t; -be_ifg_stat_t *be_ifg_stat(const be_ifg_t *ifg, ir_graph *irg, be_ifg_stat_t *stat); +void be_ifg_stat(const be_ifg_t *ifg, ir_graph *irg, be_ifg_stat_t *stat); /* ____ _ diff --git a/ir/be/bemain.c b/ir/be/bemain.c index c02916441..ccc9dff72 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -392,7 +392,16 @@ static void be_main_loop(FILE *file_handle) unsigned num_nodes_r = 0; #ifdef WITH_LIBCORE - lc_timer_t *t_prolog, *t_abi, *t_codegen, *t_sched, *t_constr, *t_regalloc, *t_finish, *t_emit, *t_other, *t_verify; + lc_timer_t *t_prolog = NULL; + lc_timer_t *t_abi = NULL; + lc_timer_t *t_codegen = NULL; + lc_timer_t *t_sched = NULL; + lc_timer_t *t_constr = NULL; + lc_timer_t *t_regalloc = NULL; + lc_timer_t *t_finish = NULL; + lc_timer_t *t_emit = NULL; + lc_timer_t *t_other = NULL; + lc_timer_t *t_verify = NULL; be_ra_timer_t *ra_timer; if (be_options.timing == BE_TIME_ON) { @@ -673,7 +682,7 @@ static void be_main_loop(FILE *file_handle) void be_main(FILE *file_handle) { #ifdef WITH_LIBCORE - lc_timer_t *t; + lc_timer_t *t = NULL; #endif /* WITH_LIBCORE */ #ifdef WITH_LIBCORE