diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 14:44:20 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 14:44:20 +0000 |
commit | 27d153db930a231718a18ec5a886c8789077c83a (patch) | |
tree | 9d29fd6c1348f3ca1742774cb242177b3d0ca82b /apps/plugins/star.c | |
parent | f7c45941344ecfbcdd5d9b311b61573d37c6ef58 (diff) | |
download | rockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.gz rockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.bz2 rockbox-27d153db930a231718a18ec5a886c8789077c83a.zip |
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
Diffstat (limited to 'apps/plugins/star.c')
-rw-r--r-- | apps/plugins/star.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) |