chiark / gitweb /
Optimiser placation.
authorSimon Tatham <anakin@pobox.com>
Fri, 29 Jun 2007 09:45:44 +0000 (09:45 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 29 Jun 2007 09:45:44 +0000 (09:45 +0000)
[originally from svn r7625]

unfinished/slide.c

index 84639ed835bfa4d8792eea45772353b240cf2a09..d1496573490db388d05e46e88a308031a70422cb 100644 (file)
@@ -651,7 +651,7 @@ static void generate_board(int w, int h, int *rtx, int *rty, int *minmoves,
     int *list, nlist, pos;
     int tx, ty;
     int i, j;
-    int moves;
+    int moves = 0;                     /* placate optimiser */
 
     /*
      * Set up a board and fill it with singletons, except for a