summaryrefslogtreecommitdiff
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.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)
649#endif 649#endif
650 650
651 int button; 651 int button;
652#if defined(CUBE_MODE_PRE) || \
653 defined(CUBE_PAUSE_PRE) || \
654 defined(CUBE_HIGHSPEED_PRE)
652 int lastbutton = BUTTON_NONE; 655 int lastbutton = BUTTON_NONE;
656#endif
653 int curr = 0; 657 int curr = 0;
654 bool highspeed = false; 658 bool highspeed = false;
655 bool paused = false; 659 bool paused = false;
@@ -855,8 +859,12 @@ enum plugin_status plugin_start(const void* parameter)
855 exit_on_usb(button); 859 exit_on_usb(button);
856 break; 860 break;
857 } 861 }
862#if defined(CUBE_MODE_PRE) || \
863 defined(CUBE_PAUSE_PRE) || \
864 defined(CUBE_HIGHSPEED_PRE)
858 if (button != BUTTON_NONE) 865 if (button != BUTTON_NONE)
859 lastbutton = button; 866 lastbutton = button;
867#endif
860 } 868 }
861 869
862 return PLUGIN_OK; 870 return PLUGIN_OK;