summaryrefslogtreecommitdiff
path: root/apps/plugins/flipit.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/flipit.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/flipit.c')
-rw-r--r--apps/plugins/flipit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index a837b1a64e..a61839cc0c 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -615,7 +615,10 @@ static bool flipit_loop(void)
615{ 615{
616 int i; 616 int i;
617 int button; 617 int button;
618#if defined(FLIPIT_SOLVE_PRE) || defined(FLIPIT_STEP_PRE) || \
619 defined(FLIPIT_TOGGLE_PRE) || defined(FLIPIT_UP_PRE)
618 int lastbutton = BUTTON_NONE; 620 int lastbutton = BUTTON_NONE;
621#endif
619 622
620 flipit_init(); 623 flipit_init();
621 while(true) { 624 while(true) {
@@ -729,8 +732,11 @@ static bool flipit_loop(void)
729 return PLUGIN_USB_CONNECTED; 732 return PLUGIN_USB_CONNECTED;
730 break; 733 break;
731 } 734 }
735#if defined(FLIPIT_SOLVE_PRE) || defined(FLIPIT_STEP_PRE) || \
736 defined(FLIPIT_TOGGLE_PRE) || defined(FLIPIT_UP_PRE)
732 if (button != BUTTON_NONE) 737 if (button != BUTTON_NONE)
733 lastbutton = button; 738 lastbutton = button;
739#endif
734 } 740 }
735} 741}
736 742