Fixed warnings
[libfirm] / ir / ana / absgraph.c
index d641804..b880304 100644 (file)
@@ -1,14 +1,31 @@
-/**
- * @file   absgraph.c
- * @date   20.04.2007
- * @author Sebastian Hack
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
  *
- * Abstract graph implementations for the CFG of a ir_graph.
+ * This file is part of libFirm.
+ *
+ * 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.
  *
- * Copyright (C) 2007 Universitaet Karlsruhe
- * Released under the GPL
+ * 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    absgraph.c
+ * @author  Sebastian Hack
+ * @date    20.04.2007
+ * @version $Id$
+ * @summary
+ *
+ * Abstract graph implementations for the CFG of a ir_graph.
+ */
 #include "irgraph_t.h"
 #include "iredges_t.h"
 #include "absgraph.h"
@@ -24,8 +41,11 @@ static void irg_cfg_succ_grow_succs(void *self, void *node, struct obstack *obst
 {
        ir_node *bl = node;
        const ir_edge_t *edge;
-       foreach_block_succ(bl, edge)
+
+       (void) self;
+       foreach_block_succ(bl, edge) {
                obstack_ptr_grow(obst, get_edge_src_irn(edge));
+       }
 }
 
 const absgraph_t absgraph_irg_cfg_succ = {
@@ -41,8 +61,11 @@ static void *irg_cfg_pred_get_root(void *self)
 static void irg_cfg_pred_grow_succs(void *self, void *node, struct obstack *obst)
 {
        int i, n;
-       for (i = 0, n = get_irn_arity(node); i < n; ++i)
+
+       (void) self;
+       for (i = 0, n = get_irn_arity(node); i < n; ++i) {
                obstack_ptr_grow(obst, get_irn_n(node, i));
+       }
 }
 
 const absgraph_t absgraph_irg_cfg_pred = {