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).
This commit is contained in:
Bård Skaflestad 2010-08-20 21:44:49 +00:00
parent a32d350270
commit 3e76680f4d

4
dfs.c
View File

@ -10,6 +10,8 @@
====================================================================*/
#include <assert.h>
#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 <stdlib.h>
#include <stdio.h>