From 2efc77d2fde7e53604f8490b57f18a36eec5c4fb Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 4 May 2011 18:22:14 +0000 Subject: Fix warnings generated by gcc 4.6.0 about variables set but not thereafter read. Most of these changes are just removal of pointless stuff or trivial reorganisations; one change is actually substantive, and fixes a bug in Keen's clue selection (the variable 'bad' was unreferenced not because I shouldn't have set it, but because I _should_ have referenced it!). [originally from svn r9164] --- loopy.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'loopy.c') diff --git a/loopy.c b/loopy.c index 43e96a7..8617c72 100644 --- a/loopy.c +++ b/loopy.c @@ -3548,7 +3548,6 @@ static void game_redraw_line(drawing *dr, game_drawstate *ds, grid *g = state->game_grid; grid_edge *e = g->edges + i; int x1, x2, y1, y2; - int xmin, ymin, xmax, ymax; int line_colour; if (state->line_errors[i]) @@ -3568,11 +3567,6 @@ static void game_redraw_line(drawing *dr, game_drawstate *ds, grid_to_screen(ds, g, e->dot1->x, e->dot1->y, &x1, &y1); grid_to_screen(ds, g, e->dot2->x, e->dot2->y, &x2, &y2); - xmin = min(x1, x2); - xmax = max(x1, x2); - ymin = min(y1, y2); - ymax = max(y1, y2); - if (line_colour == COL_FAINT) { static int draw_faint_lines = -1; if (draw_faint_lines < 0) { -- cgit v1.1