From dbd130725ab2a2c93df940cc5e77ae9ca1e5a79b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 18 Jun 2007 14:05:37 +0000 Subject: [PATCH] fixed warnings [r14599] --- ir/debug/dbginfo.c | 2 ++ ir/debug/debugger.c | 9 +++++++++ ir/debug/firm_ycomp.c | 6 +++++- ir/debug/seqnumbers.c | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ir/debug/dbginfo.c b/ir/debug/dbginfo.c index a65f28b52..7b253b003 100644 --- a/ir/debug/dbginfo.c +++ b/ir/debug/dbginfo.c @@ -113,6 +113,7 @@ const char *dbg_action_2_str(dbg_action a) { void default_dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info) { dbg_info *new_db = get_irn_dbg_info(nw); + (void) info; if (new_db == NULL) set_irn_dbg_info(nw, get_irn_dbg_info(old)); } /* default_dbg_info_merge_pair */ @@ -120,6 +121,7 @@ void default_dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info) { void default_dbg_info_merge_sets(ir_node **new_nodes, int n_new_nodes, ir_node **old_nodes, int n_old_nodes, dbg_action info) { + (void) info; if (n_old_nodes == 1) { dbg_info *old_db = get_irn_dbg_info(old_nodes[0]); int i; diff --git a/ir/debug/debugger.c b/ir/debug/debugger.c index d59edc8bf..6b4efac84 100644 --- a/ir/debug/debugger.c +++ b/ir/debug/debugger.c @@ -257,6 +257,8 @@ static void dbg_printf(const char *fmt, ...) static void dbg_new_node(void *ctx, ir_graph *irg, ir_node *node) { bp_nr_t key, *elem; + (void) ctx; + (void) irg; key.nr = get_irn_node_nr(node); key.bp.reason = BP_ON_NEW_NODE; @@ -278,6 +280,7 @@ static void dbg_new_node(void *ctx, ir_graph *irg, ir_node *node) static void dbg_replace(void *ctx, ir_node *old, ir_node *nw) { bp_nr_t key, *elem; + (void) ctx; key.nr = get_irn_node_nr(old); key.bp.reason = BP_ON_REPLACE; @@ -298,6 +301,7 @@ static void dbg_replace(void *ctx, ir_node *old, ir_node *nw) static void dbg_lower(void *ctx, ir_node *node) { bp_nr_t key, *elem; + (void) ctx; key.nr = get_irn_node_nr(node); key.bp.reason = BP_ON_LOWER; @@ -317,6 +321,7 @@ static void dbg_lower(void *ctx, ir_node *node) */ static void dbg_free_graph(void *ctx, ir_graph *irg) { + (void) ctx; { bp_nr_t key, *elem; key.nr = get_irg_graph_nr(irg); @@ -354,6 +359,7 @@ static void dbg_free_graph(void *ctx, ir_graph *irg) */ static void dbg_new_entity(void *ctx, ir_entity *ent) { + (void) ctx; { bp_ident_t key, *elem; @@ -388,6 +394,7 @@ static void dbg_new_entity(void *ctx, ir_entity *ent) */ static void dbg_new_type(void *ctx, ir_type *tp) { + (void) ctx; { bp_nr_t key, *elem; @@ -438,6 +445,7 @@ static int cmp_nr_bp(const void *elt, const void *key, size_t size) { const bp_nr_t *e1 = elt; const bp_nr_t *e2 = key; + (void) size; return (e1->nr - e2->nr) | (e1->bp.reason - e2->bp.reason); } /* cmp_nr_bp */ @@ -449,6 +457,7 @@ static int cmp_ident_bp(const void *elt, const void *key, size_t size) { const bp_ident_t *e1 = elt; const bp_ident_t *e2 = key; + (void) size; return (e1->id != e2->id) | (e1->bp.reason - e2->bp.reason); } /* cmp_ident_bp */ diff --git a/ir/debug/firm_ycomp.c b/ir/debug/firm_ycomp.c index 9c2c937d5..6bdbb58e9 100644 --- a/ir/debug/firm_ycomp.c +++ b/ir/debug/firm_ycomp.c @@ -311,9 +311,12 @@ static void firm_ycomp_debug_new_node(void *context, ir_graph *graph, ir_node *n /** * Clear the old irg if it has some data and create a new one. */ -static void firm_ycomp_debug_new_irg(void *context, ir_graph *irg, ir_entity *ent) { +static void firm_ycomp_debug_new_irg(void *context, ir_graph *irg, + ir_entity *ent) +{ firm_ycomp_dbg_t *dbg = context; char buf[SEND_BUF_SIZE]; + (void) irg; if (yy_dbg.has_data) { send_cmd(dbg, "deleteGraph\n"); @@ -510,6 +513,7 @@ static void firm_ycomp_debug_turn_into_id(void *context, ir_node *old_node) { */ static void firm_ycomp_debug_dead_node_elim(void *context, ir_graph *irg, int start) { firm_ycomp_dbg_t *dbg = context; + (void) irg; dbg->in_dead_node_elim = start != 0; } diff --git a/ir/debug/seqnumbers.c b/ir/debug/seqnumbers.c index bdeb0250e..719ed34f2 100644 --- a/ir/debug/seqnumbers.c +++ b/ir/debug/seqnumbers.c @@ -59,6 +59,7 @@ static int seqno_cmp(const void *elt, const void *key, size_t size) { seqno_t e1 = (seqno_t)elt; seqno_t e2 = (seqno_t)key; + (void) size; return (e1->filename != e2->filename) | (e1->lineno - e2->lineno); } -- 2.20.1