fixed warnings
authorMatthias Braun <matze@braunis.de>
Mon, 18 Jun 2007 14:05:37 +0000 (14:05 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 18 Jun 2007 14:05:37 +0000 (14:05 +0000)
[r14599]

ir/debug/dbginfo.c
ir/debug/debugger.c
ir/debug/firm_ycomp.c
ir/debug/seqnumbers.c

index a65f28b..7b253b0 100644 (file)
@@ -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;
index d59edc8..6b4efac 100644 (file)
@@ -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 */
index 9c2c937..6bdbb58 100644 (file)
@@ -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;
 }
 
index bdeb025..719ed34 100644 (file)
@@ -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);
 }