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:
0d06198
)
Placate optimiser.
author
Simon Tatham
<anakin@pobox.com>
Wed, 13 Jan 2010 19:25:56 +0000
(19:25 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 13 Jan 2010 19:25:56 +0000
(19:25 +0000)
[originally from svn r8838]
magnets.c
patch
|
blob
|
history
diff --git
a/magnets.c
b/magnets.c
index c970eeefbc3f6d6329f7ae031cbafe2e194b8490..beeedf54c54cc27b9b44baf835888a7d338ae614 100644
(file)
--- a/
magnets.c
+++ b/
magnets.c
@@
-1809,8
+1809,10
@@
static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
movech = ' ';
else
movech = '.';
- } else
+ } else
{
assert(!"unknown action");
+ movech = 0; /* placate optimiser */
+ }
sprintf(buf, "%c%d,%d", movech, gx, gy);