fix warnings reported by cparser
authorMatthias Braun <matze@braunis.de>
Mon, 15 Aug 2011 12:23:40 +0000 (14:23 +0200)
committerMatthias Braun <matze@braunis.de>
Wed, 17 Aug 2011 13:33:24 +0000 (15:33 +0200)
ir/lower/lower_softfloat.c
ir/stat/dags.c

index 5d575ab..71717cf 100644 (file)
@@ -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);
index 2612fb3..c0244ef 100644 (file)
@@ -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 */