summaryrefslogtreecommitdiffstats
path: root/apps/plugins/cube.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 14:44:20 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 14:44:20 +0000
commit27d153db930a231718a18ec5a886c8789077c83a (patch)
tree9d29fd6c1348f3ca1742774cb242177b3d0ca82b /apps/plugins/cube.c
parentf7c45941344ecfbcdd5d9b311b61573d37c6ef58 (diff)
downloadrockbox-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/cube.c')
-rw-r--r--apps/plugins/cube.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 6d0e14f8f0..9540023029 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -649,7 +649,11 @@ enum plugin_status plugin_start(const void* parameter)
#endif
int button;
+#if defined(CUBE_MODE_PRE) || \
+ defined(CUBE_PAUSE_PRE) || \
+ defined(CUBE_HIGHSPEED_PRE)
int lastbutton = BUTTON_NONE;
+#endif
int curr = 0;
bool highspeed = false;
bool paused = false;
@@ -855,8 +859,12 @@ enum plugin_status plugin_start(const void* parameter)
exit_on_usb(button);
break;
}
+#if defined(CUBE_MODE_PRE) || \
+ defined(CUBE_PAUSE_PRE) || \
+ defined(CUBE_HIGHSPEED_PRE)
if (button != BUTTON_NONE)
lastbutton = button;
+#endif
}
return PLUGIN_OK;