#include
#include
#define GREY 1
#define BLACK 0
#define WHITE 2
typedef struct node * graph;
typedef struct stack * snode;
graph cno
I just had this warning with gcc and it's a simple fix. stack_counter should not be initialised in the header, but rather in a source file that includes it. So the header should just use:
extern int stack_counter;
Then declare and initialise stack_counter in global scope of just one source file that includes that header:
int stack_counter = 0;