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

ir/common/firmwalk.c
ir/common/irtools.c
ir/common/statistics.c

index fe38a30..d1c8d78 100644 (file)
@@ -266,6 +266,7 @@ static
 void fw_collect_irn(ir_node *irn, void *env)
 {
   fw_data *data;
+  (void) env;
 
   /* block nodes. */
   if (is_Block(irn)) {
@@ -286,6 +287,7 @@ void fw_collect_irn(ir_node *irn, void *env)
 static
 void fw_free_colleted_data(ir_node *irn, void *env)
 {
+  (void) env;
   /* Free node list from blocks */
   if (is_Block(irn))
   {
index f2c6417..1340919 100644 (file)
@@ -37,6 +37,7 @@
 
 /* the famous clear_link implementation. */
 void firm_clear_link(ir_node *n, void *env) {
+  (void) env;
   set_irn_link(n, NULL);
 }
 
index d0b68ba..631fb69 100644 (file)
@@ -37,8 +37,9 @@
 /* Statistics about allocated datastructures: counts.                  */
 
 static void count_nodes(ir_node *n, void *env) {
-  int * counter_ptr = (int *)env;
-  (*counter_ptr)++;
+       int * counter_ptr = (int *)env;
+       (void) n;
+       (*counter_ptr)++;
 }
 
 
@@ -89,12 +90,14 @@ void print_type_counts(int verbosity) {
 /** Prints number of tarvals.
  *   */
 void print_tarval_counts(int verbosity) {
+  (void) verbosity;
   printf("tarval count not implemented.\n\n");
 }
 
 /** Prints number of idents.
  *   */
 void print_ident_counts(int verbosity) {
+  (void) verbosity;
   printf("ident count not implemented.\n\n");
 }