From: Matthias Braun Date: Tue, 12 Sep 2006 12:17:37 +0000 (+0000) Subject: more warning fixes X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=3ea053779e18f3a0a2fcead621f7d610de8531c1;p=libfirm more warning fixes [r8221] --- diff --git a/ir/ana/cdep.c b/ir/ana/cdep.c index eb8407669..7ca868aec 100644 --- a/ir/ana/cdep.c +++ b/ir/ana/cdep.c @@ -147,6 +147,8 @@ void compute_cdep(ir_graph *irg) set_dump_block_edge_hook(cdep_edge_hook); dump_ir_block_graph(irg, "_cdep"); set_dump_block_edge_hook(NULL); +#else + (void) cdep_edge_hook; #endif /* restore the post dominator relation */ diff --git a/ir/ana/execfreq.h b/ir/ana/execfreq.h index 8548aa7fe..32b33dfa2 100644 --- a/ir/ana/execfreq.h +++ b/ir/ana/execfreq.h @@ -37,7 +37,7 @@ exec_freq_t *compute_execfreq(ir_graph *irg, double loop_weight); void free_execfreq(exec_freq_t *ef); -double get_block_execfreq(const exec_freq_t *ef, const ir_node * irn); -unsigned long get_block_execfreq_ulong(const exec_freq_t *ef, const ir_node *bb); +double get_block_execfreq(const exec_freq_t *ef, const ir_node *block); +unsigned long get_block_execfreq_ulong(const exec_freq_t *ef, const ir_node *block); #endif /* EXECFREQ_H_ */ diff --git a/ir/ana2/timing.c b/ir/ana2/timing.c index 89622cf38..fabe9d197 100644 --- a/ir/ana2/timing.c +++ b/ir/ana2/timing.c @@ -23,7 +23,8 @@ #include #include -# include "timing.h" +#include "timing.h" +#include "xmalloc.h" struct timing_env { @@ -39,7 +40,7 @@ int end_timing (timing_t *t) {} #else #include - + /* Helpers */ @@ -62,7 +63,7 @@ timeval_subtract (struct timeval *x, struct timeval *y) return ((x->tv_sec - y->tv_sec) * 1000000 + (x->tv_usec - y->tv_usec)); } - + /* Public Interface */ @@ -101,9 +102,12 @@ end_timing (timing_t *t) } #endif /* _WIN32 */ - + /* $Log$ + Revision 1.5 2006/09/12 12:17:37 matze + more warning fixes + Revision 1.4 2006/06/06 12:06:27 beck use xmalloc instead of malloc @@ -115,6 +119,4 @@ end_timing (timing_t *t) Revision 1.1 2004/10/29 18:55:52 liekweg (mostly) generic timimg - - */