Placate optimiser.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 13 Jan 2010 19:25:56 +0000 (19:25 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 13 Jan 2010 19:25:56 +0000 (19:25 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8838 cda61777-01e9-0310-a592-d414129be87e

magnets.c

index c970eee..beeedf5 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);