chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
622a5ff
)
OS X seems particularly picky about possibly uninitialised
author
Simon Tatham
<anakin@pobox.com>
Sat, 27 Aug 2005 09:35:14 +0000
(09:35 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sat, 27 Aug 2005 09:35:14 +0000
(09:35 +0000)
variables. Placate its optimiser (again).
[originally from svn r6223]
inertia.c
patch
|
blob
|
history
diff --git
a/inertia.c
b/inertia.c
index 2f1fd5db14ae618384392c072b6812d0b2611288..a158363adb1807facbb80ef780b4362400cb948d 100644
(file)
--- 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.
*/
/*
* 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)
for (sy = 0; sy < h; sy++) {
for (sx = 0; sx < w; sx++)
if (AT(w, h, grid, sx, sy) == START)