mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
OS X seems particularly picky about possibly uninitialised
variables. Placate its optimiser (again). [originally from svn r6223]
This commit is contained in:
@ -304,6 +304,7 @@ static int find_gem_candidates(int w, int h, char *grid,
|
|||||||
/*
|
/*
|
||||||
* Find the starting square.
|
* Find the starting square.
|
||||||
*/
|
*/
|
||||||
|
sx = -1; /* placate optimiser */
|
||||||
for (sy = 0; sy < h; sy++) {
|
for (sy = 0; sy < h; sy++) {
|
||||||
for (sx = 0; sx < w; sx++)
|
for (sx = 0; sx < w; sx++)
|
||||||
if (AT(w, h, grid, sx, sy) == START)
|
if (AT(w, h, grid, sx, sy) == START)
|
||||||
|
Reference in New Issue
Block a user