fixed a bunch of warnings (in OPTIMIZE mode)
[libfirm] / ir / ana / cdep.c
index eb84076..d746f19 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ *
+ * 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.
+ *
+ * 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   Implementation of cdep
+ * @version $Id$
+ */
 #include <assert.h>
 #include <stdlib.h>
 #include "irdom.h"
@@ -9,8 +33,6 @@
 #include "cdep.h"
 #include "irprintf.h"
 
-typedef unsigned int uint;
-
 static pmap *cdep_map;
 
 cdep *find_cdep(const ir_node *block)
@@ -66,8 +88,8 @@ typedef struct cdep_env {
 static void cdep_pre(ir_node *node, void *ctx)
 {
        cdep_env *env = ctx;
-       uint n;
-       uint i;
+       unsigned int n;
+       unsigned int i;
 
        /* special case:
         * start and end block have no control dependency
@@ -147,6 +169,8 @@ void compute_cdep(ir_graph *irg)
        set_dump_block_edge_hook(cdep_edge_hook);
        dump_ir_block_graph(irg, "_cdep");
        set_dump_block_edge_hook(NULL);
+#else
+       (void) cdep_edge_hook;
 #endif
 
        /* restore the post dominator relation */
@@ -156,6 +180,7 @@ void compute_cdep(ir_graph *irg)
 
 void free_cdep(ir_graph *irg)
 {
+       (void) irg;
        // TODO atm leaking more memory than a small memory leaking animal
 }