Commit d3cd1fe0 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix warnings

parent 13c7e92f
......@@ -1119,17 +1119,13 @@ void be_dump_phi_reg_reqs(FILE *F, const ir_node *node, dump_reason_t reason)
break;
case dump_node_nodeattr_txt:
break;
case dump_node_info_txt:
{
case dump_node_info_txt: {
ir_graph *irg = get_irn_irg(node);
if (irg_is_constrained(irg, IR_GRAPH_CONSTRAINT_BACKEND)) {
arch_dump_reqs_and_registers(F, node);
}
break;
}
default:
break;
}
}
......
......@@ -302,7 +302,7 @@ static void displace(workset_t *const new_vals, bool const is_usage,
/* 1. Identify the number of needed slots and the values to reload */
unsigned demand = 0;
ir_node *val;
ir_node *val = NULL;
workset_foreach(new_vals, val, iter) {
bool reloaded = false;
......@@ -694,7 +694,7 @@ static void process_block(ir_node *block)
DB((dbg, DBG_WSETS, "Start workset for %+F:\n", block));
#ifdef DEBUG_libfirm
ir_node *irn;
ir_node *irn = NULL;
workset_foreach(ws, irn, iter) {
DB((dbg, DBG_WSETS, " %+F (%u)\n", irn, workset_get_time(ws, iter)));
}
......@@ -763,9 +763,9 @@ static void fix_block_borders(ir_node *block, void *data)
DB((dbg, DBG_FIX, " Pred %+F\n", pred));
/* spill all values not used anymore */
ir_node *node;
ir_node *node = NULL;
workset_foreach(pred_end_workset, node, iter) {
ir_node *n2;
ir_node *n2 = NULL;
bool found = false;
workset_foreach(start_workset, n2, iter2) {
if (n2 == node) {
......
......@@ -110,8 +110,8 @@ static void analyse_switch1(switch_info_t *info)
case_data_t *cases = XMALLOCN(case_data_t, num_cases);
unsigned c = 0;
size_t e;
ir_node *proj;
ir_node *proj = NULL;
foreach_out_irn(switchn, i, proj) {
long pn = get_Proj_proj(proj);
ir_node *target = get_irn_out(proj, 0);
......@@ -192,7 +192,6 @@ static void create_out_of_bounds_check(switch_info_t *info)
ir_node *oob_cond;
ir_node *in[1];
ir_node *new_block;
ir_node *proj;
size_t n_default_preds;
assert(tarval_is_null(info->switch_min));
......@@ -212,6 +211,7 @@ static void create_out_of_bounds_check(switch_info_t *info)
set_nodes_block(switchn, new_block);
/* adjust projs */
ir_node *proj = NULL;
foreach_out_irn(switchn, i, proj) {
long pn = get_Proj_proj(proj);
if (pn == pn_Switch_default) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment