diff options
| author | Simon Tatham <anakin@pobox.com> | 2012-06-01 18:41:23 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2012-06-01 18:41:23 +0000 |
| commit | d7febe24f9e9b98424eacb9a1c7a542f95a360c3 (patch) | |
| tree | fb0b065bb5c93bfc8722ab428b9127f447d116b1 | |
| parent | 3ddf5cc2d0f0d23c63b96b98c9cec47863641076 (diff) | |
| download | puzzles-d7febe24f9e9b98424eacb9a1c7a542f95a360c3.zip puzzles-d7febe24f9e9b98424eacb9a1c7a542f95a360c3.tar.gz puzzles-d7febe24f9e9b98424eacb9a1c7a542f95a360c3.tar.bz2 puzzles-d7febe24f9e9b98424eacb9a1c7a542f95a360c3.tar.xz | |
Add pointless initialisations to placate a gcc warning.
(I'm confident these can't happen. maxb is initialised whenever we
break from the first loop with y < h, and when we don't break from
that loop the second loop which uses maxb is run zero times. But gcc
can't work that out, sigh.)
[originally from svn r9546]
| -rw-r--r-- | bridges.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -940,6 +940,7 @@ static void map_update_possibles(game_state *state) idx = x; s = e = -1; bl = 0; + maxb = state->params.maxb; /* placate optimiser */ /* Unset possible flags until we find an island. */ for (y = 0; y < state->h; y++) { is_s = IDX(state, gridi, idx); @@ -985,6 +986,7 @@ static void map_update_possibles(game_state *state) idx = y*w; s = e = -1; bl = 0; + maxb = state->params.maxb; /* placate optimiser */ for (x = 0; x < state->w; x++) { is_s = IDX(state, gridi, idx); if (is_s) { |