From: Simon Tatham Date: Sat, 27 Aug 2005 09:35:14 +0000 (+0000) Subject: OS X seems particularly picky about possibly uninitialised X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;ds=sidebyside;h=8c547d5320864bca867ab8008e9e2dd4a4a4bc6b;p=sgt-puzzles.git OS X seems particularly picky about possibly uninitialised variables. Placate its optimiser (again). [originally from svn r6223] --- diff --git a/inertia.c b/inertia.c index 2f1fd5d..a158363 100644 --- a/inertia.c +++ b/inertia.c @@ -304,6 +304,7 @@ static int find_gem_candidates(int w, int h, char *grid, /* * Find the starting square. */ + sx = -1; /* placate optimiser */ for (sy = 0; sy < h; sy++) { for (sx = 0; sx < w; sx++) if (AT(w, h, grid, sx, sy) == START)