Commit 8dda77c8 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix warnings

parent c4b88b8d
......@@ -1522,7 +1522,7 @@ static void create_stacklayout(ir_graph *irg)
continue;
char buf[128];
snprintf(buf, sizeof(buf), "param_%d", p);
snprintf(buf, sizeof(buf), "param_%u", p);
ident *id = new_id_from_str(buf);
param->entity = new_entity(arg_type, id, param->type);
set_entity_offset(param->entity, param->offset);
......
......@@ -37,6 +37,7 @@ static ir_node *random_select(void *block_env, ir_nodeset_t *ready_set)
/* at last: schedule branches */
rand_node = ir_nodeset_first(ready_set);
} else {
rand_node = NULL;
do {
/* take 1 random node */
int n = rand() % ir_nodeset_size(ready_set);
......
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