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

cleanup

parent 4262cd9f
...@@ -513,7 +513,7 @@ static void ird_set_irg_link(const ir_graph *irg, void *x) ...@@ -513,7 +513,7 @@ static void ird_set_irg_link(const ir_graph *irg, void *x)
*/ */
static void clear_link(ir_node *node, void *env) static void clear_link(ir_node *node, void *env)
{ {
(void) env; (void)env;
ird_set_irn_link(node, NULL); ird_set_irn_link(node, NULL);
} }
...@@ -1025,8 +1025,8 @@ static void print_dbg_info(FILE *F, dbg_info *dbg) ...@@ -1025,8 +1025,8 @@ static void print_dbg_info(FILE *F, dbg_info *dbg)
static void print_type_dbg_info(FILE *F, type_dbg_info *dbg) static void print_type_dbg_info(FILE *F, type_dbg_info *dbg)
{ {
(void) F; (void)F;
(void) dbg; (void)dbg;
/* TODO */ /* TODO */
} }
...@@ -1480,8 +1480,8 @@ static void dump_entity_node(FILE *F, ir_entity *ent) ...@@ -1480,8 +1480,8 @@ static void dump_entity_node(FILE *F, ir_entity *ent)
static void dump_entity_initializer(FILE *F, const ir_entity *ent) static void dump_entity_initializer(FILE *F, const ir_entity *ent)
{ {
/* TODO */ /* TODO */
(void) F; (void)F;
(void) ent; (void)ent;
} }
/** /**
......
...@@ -33,12 +33,11 @@ ...@@ -33,12 +33,11 @@
*/ */
static void optimize_in_place_wrapper(ir_node *n, void *env) static void optimize_in_place_wrapper(ir_node *n, void *env)
{ {
(void)env;
ir_node *optimized = optimize_in_place_2(n); ir_node *optimized = optimize_in_place_2(n);
(void) env;
if (optimized != n) { if (optimized != n)
exchange(n, optimized); exchange(n, optimized);
}
} }
void local_optimize_node(ir_node *n) void local_optimize_node(ir_node *n)
......
...@@ -130,7 +130,7 @@ static set *symtbl; ...@@ -130,7 +130,7 @@ static set *symtbl;
*/ */
static int symbol_cmp(const void *elt, const void *key, size_t size) static int symbol_cmp(const void *elt, const void *key, size_t size)
{ {
(void) size; (void)size;
const symbol_t *entry = (const symbol_t *) elt; const symbol_t *entry = (const symbol_t *) elt;
const symbol_t *keyentry = (const symbol_t *) key; const symbol_t *keyentry = (const symbol_t *) key;
int res = entry->typetag - keyentry->typetag; int res = entry->typetag - keyentry->typetag;
...@@ -141,7 +141,7 @@ static int symbol_cmp(const void *elt, const void *key, size_t size) ...@@ -141,7 +141,7 @@ static int symbol_cmp(const void *elt, const void *key, size_t size)
static int id_cmp(const void *elt, const void *key, size_t size) static int id_cmp(const void *elt, const void *key, size_t size)
{ {
(void) size; (void)size;
const id_entry *entry = (const id_entry *) elt; const id_entry *entry = (const id_entry *) elt;
const id_entry *keyentry = (const id_entry *) key; const id_entry *keyentry = (const id_entry *) key;
return entry->id - keyentry->id; return entry->id - keyentry->id;
......
...@@ -452,7 +452,7 @@ static int attrs_equal_ASM(const ir_node *a, const ir_node *b) ...@@ -452,7 +452,7 @@ static int attrs_equal_ASM(const ir_node *a, const ir_node *b)
static void default_copy_attr(ir_graph *irg, const ir_node *old_node, static void default_copy_attr(ir_graph *irg, const ir_node *old_node,
ir_node *new_node) ir_node *new_node)
{ {
(void) irg; (void)irg;
assert(get_irn_op(old_node) == get_irn_op(new_node)); assert(get_irn_op(old_node) == get_irn_op(new_node));
size_t size = get_op_attr_size(get_irn_op(old_node)); size_t size = get_op_attr_size(get_irn_op(old_node));
memcpy(&new_node->attr, &old_node->attr, size); memcpy(&new_node->attr, &old_node->attr, size);
......
...@@ -118,7 +118,7 @@ static unsigned int get_irp_n_blocks(void) ...@@ -118,7 +118,7 @@ static unsigned int get_irp_n_blocks(void)
/* vcg helper */ /* vcg helper */
static void dump_profile_node_info(void *ctx, FILE *f, const ir_node *irn) static void dump_profile_node_info(void *ctx, FILE *f, const ir_node *irn)
{ {
(void) ctx; (void)ctx;
if (is_Block(irn)) { if (is_Block(irn)) {
unsigned int execcount = ir_profile_get_block_execcount(irn); unsigned int execcount = ir_profile_get_block_execcount(irn);
fprintf(f, "profiled execution count: %u\n", execcount); fprintf(f, "profiled execution count: %u\n", execcount);
......
...@@ -405,7 +405,7 @@ static void bool_walk(ir_node *n, void *ctx) ...@@ -405,7 +405,7 @@ static void bool_walk(ir_node *n, void *ctx)
*/ */
static void clear_block_infos(ir_node *node, void *env) static void clear_block_infos(ir_node *node, void *env)
{ {
(void) env; (void)env;
/* we visit blocks before any other nodes (from the block) */ /* we visit blocks before any other nodes (from the block) */
if (!is_Block(node)) if (!is_Block(node))
...@@ -421,7 +421,7 @@ static void clear_block_infos(ir_node *node, void *env) ...@@ -421,7 +421,7 @@ static void clear_block_infos(ir_node *node, void *env)
*/ */
static void collect_phis(ir_node *node, void *env) static void collect_phis(ir_node *node, void *env)
{ {
(void) env; (void)env;
if (is_Phi(node)) { if (is_Phi(node)) {
ir_node *block = get_nodes_block(node); ir_node *block = get_nodes_block(node);
......
...@@ -455,7 +455,7 @@ static block_info *get_block_info(ir_node *block) ...@@ -455,7 +455,7 @@ static block_info *get_block_info(ir_node *block)
*/ */
static void clear_block_mark_loop_link(ir_node *block, void *env) static void clear_block_mark_loop_link(ir_node *block, void *env)
{ {
(void) env; (void)env;
if (is_Block(block)) { if (is_Block(block)) {
set_Block_mark(block, 0); set_Block_mark(block, 0);
...@@ -506,7 +506,7 @@ static void infinite_loop_walker(ir_node *block, void *env) ...@@ -506,7 +506,7 @@ static void infinite_loop_walker(ir_node *block, void *env)
{ {
int arity; int arity;
int i; int i;
(void) env; (void)env;
if (! is_Block(block)) if (! is_Block(block))
return; return;
...@@ -704,7 +704,7 @@ static void topo_walker(ir_node *irn, void *ctx) ...@@ -704,7 +704,7 @@ static void topo_walker(ir_node *irn, void *ctx)
ir_node *block; ir_node *block;
block_info *info; block_info *info;
ir_node *value; ir_node *value;
(void) ctx; (void)ctx;
if (is_Block(irn)) if (is_Block(irn))
return; return;
......
...@@ -405,7 +405,7 @@ static void init_block_link(ir_node *block, void *env) ...@@ -405,7 +405,7 @@ static void init_block_link(ir_node *block, void *env)
*/ */
static void collect_phis(ir_node *node, void *env) static void collect_phis(ir_node *node, void *env)
{ {
(void) env; (void)env;
if (is_Phi(node)) { if (is_Phi(node)) {
ir_node *block = get_nodes_block(node); ir_node *block = get_nodes_block(node);
......
...@@ -179,10 +179,9 @@ static void dump_list(const char *msg, const block_t *block) ...@@ -179,10 +179,9 @@ static void dump_list(const char *msg, const block_t *block)
*/ */
static int listmap_cmp_ptr(const void *elt, const void *key, size_t size) static int listmap_cmp_ptr(const void *elt, const void *key, size_t size)
{ {
(void)size;
const listmap_entry_t *e1 = (const listmap_entry_t*)elt; const listmap_entry_t *e1 = (const listmap_entry_t*)elt;
const listmap_entry_t *e2 = (const listmap_entry_t*)key; const listmap_entry_t *e2 = (const listmap_entry_t*)key;
(void) size;
return e1->id != e2->id; return e1->id != e2->id;
} }
...@@ -250,10 +249,9 @@ static unsigned opcode_hash(const opcode_key_t *entry) ...@@ -250,10 +249,9 @@ static unsigned opcode_hash(const opcode_key_t *entry)
*/ */
static int cmp_opcode(const void *elt, const void *key, size_t size) static int cmp_opcode(const void *elt, const void *key, size_t size)
{ {
(void)size;
const opcode_key_t *o1 = (opcode_key_t*)elt; const opcode_key_t *o1 = (opcode_key_t*)elt;
const opcode_key_t *o2 = (opcode_key_t*)key; const opcode_key_t *o2 = (opcode_key_t*)key;
(void) size;
return o1->code != o2->code || o1->mode != o2->mode || return o1->code != o2->code || o1->mode != o2->mode ||
o1->arity != o2->arity || o1->arity != o2->arity ||
o1->u.proj != o2->u.proj || o1->u.addr != o2->u.addr; o1->u.proj != o2->u.proj || o1->u.addr != o2->u.addr;
...@@ -1000,7 +998,7 @@ static void partition_for_block(ir_node *block, pred_t preds[], int n_preds, env ...@@ -1000,7 +998,7 @@ static void partition_for_block(ir_node *block, pred_t preds[], int n_preds, env
*/ */
static void clear_phi_links(ir_node *irn, void *env) static void clear_phi_links(ir_node *irn, void *env)
{ {
(void) env; (void)env;
if (is_Block(irn)) { if (is_Block(irn)) {
set_Block_phis(irn, NULL); set_Block_phis(irn, NULL);
set_irn_link(irn, NULL); set_irn_link(irn, NULL);
......
...@@ -186,12 +186,12 @@ static void dump_curr(block_t *bl, const char *s) ...@@ -186,12 +186,12 @@ static void dump_curr(block_t *bl, const char *s)
#else #else
static void dump_block_list(ldst_env *env) static void dump_block_list(ldst_env *env)
{ {
(void) env; (void)env;
} }
static void dump_curr(block_t *bl, const char *s) static void dump_curr(block_t *bl, const char *s)
{ {
(void) bl; (void)bl;
(void) s; (void)s;
} }
#endif /* DEBUG_libfirm */ #endif /* DEBUG_libfirm */
...@@ -785,7 +785,7 @@ static void collect_memops(ir_node *irn, void *ctx) ...@@ -785,7 +785,7 @@ static void collect_memops(ir_node *irn, void *ctx)
ir_node *block; ir_node *block;
block_t *entry; block_t *entry;
(void) ctx; (void)ctx;
if (is_Proj(irn)) { if (is_Proj(irn)) {
/* we can safely ignore ProjM's except the initial memory */ /* we can safely ignore ProjM's except the initial memory */
ir_graph *irg = get_irn_irg(irn); ir_graph *irg = get_irn_irg(irn);
...@@ -1857,7 +1857,7 @@ void opt_ldst(ir_graph *irg) ...@@ -1857,7 +1857,7 @@ void opt_ldst(ir_graph *irg)
bl->id_2_memop_antic = NEW_ARR_DZ(memop_t*, &env.obst, env.rbs_size); bl->id_2_memop_antic = NEW_ARR_DZ(memop_t*, &env.obst, env.rbs_size);
} }
(void) dump_block_list; (void)dump_block_list;
calcAvail(); calcAvail();
calcAntic(); calcAntic();
......
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