chiark / gitweb /
Placate optimiser.
authorSimon Tatham <anakin@pobox.com>
Wed, 13 Jan 2010 19:25:56 +0000 (19:25 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 13 Jan 2010 19:25:56 +0000 (19:25 +0000)
[originally from svn r8838]

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);