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/rockblox.c | |
parent | f7c45941344ecfbcdd5d9b311b61573d37c6ef58 (diff) | |
download | rockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.gz 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/rockblox.c')
-rw-r--r-- | apps/plugins/rockblox.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c index b3767c1a15..dd0bef8c28 100644 --- a/apps/plugins/rockblox.c +++ b/apps/plugins/rockblox.c | |||
@@ -1332,7 +1332,9 @@ static int rockblox_menu(void) | |||
1332 | static int rockblox_loop (void) | 1332 | static int rockblox_loop (void) |
1333 | { | 1333 | { |
1334 | int button; | 1334 | int button; |
1335 | #if defined(ROCKBLOX_OFF_PRE) || defined(ROCKBLOX_DROP_PRE) | ||
1335 | int lastbutton = BUTTON_NONE; | 1336 | int lastbutton = BUTTON_NONE; |
1337 | #endif | ||
1336 | long next_down_tick = *rb->current_tick + level_speed(rockblox_status.level); | 1338 | long next_down_tick = *rb->current_tick + level_speed(rockblox_status.level); |
1337 | 1339 | ||
1338 | if (rockblox_menu()) { | 1340 | if (rockblox_menu()) { |
@@ -1450,8 +1452,10 @@ static int rockblox_loop (void) | |||
1450 | return PLUGIN_USB_CONNECTED; | 1452 | return PLUGIN_USB_CONNECTED; |
1451 | break; | 1453 | break; |
1452 | } | 1454 | } |
1455 | #if defined(ROCKBLOX_OFF_PRE) || defined(ROCKBLOX_DROP_PRE) | ||
1453 | if (button != BUTTON_NONE) | 1456 | if (button != BUTTON_NONE) |
1454 | lastbutton = button; | 1457 | lastbutton = button; |
1458 | #endif | ||
1455 | 1459 | ||
1456 | #ifdef HAVE_SCROLLWHEEL | 1460 | #ifdef HAVE_SCROLLWHEEL |
1457 | /* check if we should enable the scroll wheel, if events | 1461 | /* check if we should enable the scroll wheel, if events |