From: Matthias Braun Date: Mon, 15 Aug 2011 12:23:40 +0000 (+0200) Subject: fix warnings reported by cparser X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c47eb955f454e1b488a4175d6831c025e0b76293;p=libfirm fix warnings reported by cparser --- diff --git a/ir/lower/lower_softfloat.c b/ir/lower/lower_softfloat.c index 5d575abcc..71717cf0b 100644 --- a/ir/lower/lower_softfloat.c +++ b/ir/lower/lower_softfloat.c @@ -77,7 +77,7 @@ static ir_type *unop_tp_lu_f; /** A map from a method type to its lowered type. */ static pmap *lowered_type; -ir_nodeset_t created_mux_nodes; +static ir_nodeset_t created_mux_nodes; /** * @return The lowered (floating point) mode. @@ -313,7 +313,7 @@ static ir_node *create_softfloat_symconst(const ir_node *n, const char *name) assert(double_types <= 3); if (float_types + double_types > 1) - snprintf(buf, sizeof(buf), "__%s%s%s%s%d", name, first_param, second_param, result, float_types + double_types); + snprintf(buf, sizeof(buf), "__%s%s%s%s%u", name, first_param, second_param, result, float_types + double_types); else snprintf(buf, sizeof(buf), "__%s%s%s%s", name, first_param, second_param, result); @@ -475,7 +475,7 @@ static void lower_Call(ir_node *node) */ static void lower_Cmp(ir_node *n) { - ir_node *symconst; + ir_node *symconst = NULL; ir_node *block = get_nodes_block(n); ir_node *call_result = NULL; dbg_info *dbgi = get_irn_dbg_info(n); diff --git a/ir/stat/dags.c b/ir/stat/dags.c index 2612fb323..c0244ef53 100644 --- a/ir/stat/dags.c +++ b/ir/stat/dags.c @@ -391,7 +391,7 @@ void count_dags_in_graph(graph_entry_t *global, graph_entry_t *graph) entry->num_roots, entry->num_nodes, entry->num_inner_nodes, - entry->is_tree, + (unsigned)entry->is_tree, get_irn_node_nr(entry->root)); } /* for */