From: simon Date: Thu, 18 Feb 2010 18:12:12 +0000 (+0000) Subject: Fix build failure on MacOS by initialising a variable which was X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/cf5cf301e47c87501d7b2ee311d2988a20afb2c5?ds=sidebyside Fix build failure on MacOS by initialising a variable which was reported as potentially-unused. (In fact, as far as I can tell, it's only ever uninitialised in assertion-failing code paths, so not a real bug.) git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8873 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/signpost.c b/signpost.c index cfae28e..fec2084 100644 --- a/signpost.c +++ b/signpost.c @@ -916,7 +916,7 @@ static int used_colour(game_state *state, int i, int start) static int head_number(game_state *state, int i, int *scratch) { - int off = 0, found = 0, start, ss, j = i, c, n, sz; + int off = 0, found = 0, start = 0, ss, j = i, c, n, sz; const char *why = NULL; assert(state->prev[i] == -1 && state->next[i] != -1);