From 27d153db930a231718a18ec5a886c8789077c83a Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 1 May 2011 14:44:20 +0000 Subject: Fix nearly all residual 'variable set but not used' warnings reported from GCC 4.6.0. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29810 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/star.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/plugins/star.c') diff --git a/apps/plugins/star.c b/apps/plugins/star.c index 3506f4b09e..c9797fd85b 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c @@ -945,7 +945,11 @@ static int star_run_game(int current_level) int move_x = 0; int move_y = 0; int key; +#if defined(STAR_LEVEL_DOWN_PRE) || \ + defined(STAR_LEVEL_UP_PRE) || \ + defined(STAR_TOGGLE_CONTROL_PRE) int lastkey = BUTTON_NONE; +#endif if (!star_load_level(current_level)) return 0; @@ -1033,8 +1037,12 @@ static int star_run_game(int current_level) } break; } +#if defined(STAR_LEVEL_DOWN_PRE) || \ + defined(STAR_LEVEL_UP_PRE) || \ + defined(STAR_TOGGLE_CONTROL_PRE) if (key != BUTTON_NONE) lastkey = key; +#endif } if (control == STAR_CONTROL_BALL) -- cgit v1.2.3