mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
a32d350270
commit
3e76680f4d
4
dfs.c
4
dfs.c
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user