fix a bunch of warnings reported by clang analyzer
[libfirm] / ir / adt / hungarian.c
index 926f768..d1f49be 100644 (file)
@@ -27,7 +27,6 @@
 /**
  * @file
  * @brief   Solving the Minimum Assignment Problem using the Hungarian Method.
- * @version $Id$
  */
 #include "config.h"
 
@@ -35,7 +34,7 @@
 #include <stdlib.h>
 #include <assert.h>
 
-#include "irtools.h"
+#include "util.h"
 #include "xmalloc.h"
 #include "debug.h"
 #include "bitset.h"
@@ -43,7 +42,7 @@
 
 #include "hungarian.h"
 
-DEBUG_ONLY(static firm_dbg_module_t *dbg);
+DEBUG_ONLY(static firm_dbg_module_t *dbg;)
 
 struct hungarian_problem_t {
        unsigned      num_rows;      /**< number of rows */
@@ -129,7 +128,7 @@ void hungarian_prepare_cost_matrix(hungarian_problem_t *p,
        } else if (mode == HUNGARIAN_MODE_MINIMIZE_COST) {
                /* nothing to do */
        } else {
-               panic("Unknown hungarian problem mode\n");
+               panic("Unknown hungarian problem mode");
        }
 }