From 3e76680f4df0229903f250fe5f72a9e2e05bad00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Fri, 20 Aug 2010 21:44:49 +0000 Subject: [PATCH] Silence compiler by adding prototype for dfs() (i.e., #include "dfs.h"). Also, don't require build(er|system) to always #define the preprocessing symbol "TEST" (to a zero or non-zero value). --- dfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dfs.c b/dfs.c index 9952c71df..30aaa3a9e 100644 --- a/dfs.c +++ b/dfs.c @@ -10,6 +10,8 @@ ====================================================================*/ #include +#include "dfs.h" + /* * Assign color (nonnegative number) to each connected component of graph */ @@ -61,7 +63,7 @@ void dfs (int size, int *ia, int *ja, int *ncolors, int *color, int* work) -#if TEST +#if defined(TEST) && TEST #include #include