GC unused variables.
[libfirm] / ir / ana / irouts.c
index 6f12c37..fb5f029 100644 (file)
@@ -1,24 +1,29 @@
 /*
- * Project:     libFIRM
- * File name:   ir/ana/irouts.c
- * Purpose:     Compute and access out edges.
- * Author:      Goetz Lindenmaier
- * Modified by: Michael Beck
- * Created:     1.2002
- * CVS-ID:      $Id$
- * Copyright:   (c) 2002-2007 Universität Karlsruhe
- * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
- */
-
-/**
- * @file irouts.c Compute out edges for ir nodes (also called def-use edges).
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ *
+ * This file is part of libFirm.
  *
- * Copyright (C) 2002 by Universitaet Karlsruhe
- * All rights reserved.
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
  *
- * Authors:  Goetz Lindenmaier
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
  */
 
+/**
+ * @file
+ * @brief    Compute and access out edges (also called def-use edges).
+ * @author   Goetz Lindenmaier, Michael Beck
+ * @date     1.2002
+ * @version  $Id$
+ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -48,6 +53,7 @@
 #ifdef DEBUG_libfirm
 /** Clear the outs of a node */
 static void reset_outs(ir_node *node, void *unused) {
+       (void) unused;
        node->out       = NULL;
        node->out_valid = 0;
 }
@@ -477,6 +483,7 @@ void free_irp_outs(void) {
  * before counting.
  */
 static void init_count(ir_node * node, void *env) {
+       (void) env;
        node->out = (ir_node **) 1; /* 1 for the array size */
 }
 
@@ -543,10 +550,11 @@ static void set_array_pointer(ir_node *node, void *env) {
  * Adds an outedge from the predecessor to the
  * current node.
  */
-static void set_out_pointer(ir_node * node, void * env) {
+static void set_out_pointer(ir_node * node, void *env) {
        int i, arity = get_irn_arity(node);
        ir_node *succ;
        int start = (!is_Block(node)) ? -1 : 0;
+       (void) env;
 
        for (i = start; i < arity; ++i) {
                succ = get_irn_n(node, i);