summaryrefslogtreecommitdiffstats
path: root/apps/plugins/sliding_puzzle.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/sliding_puzzle.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/sliding_puzzle.c')
-rw-r--r--apps/plugins/sliding_puzzle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c
index aeac96dfba..92c9db768f 100644
--- a/apps/plugins/sliding_puzzle.c
+++ b/apps/plugins/sliding_puzzle.c
@@ -618,7 +618,9 @@ static void puzzle_init(void)
static int puzzle_loop(void)
{
int button;
+#if defined(PUZZLE_SHUFFLE_PICTURE_PRE)
int lastbutton = BUTTON_NONE;
+#endif
bool load_success;
puzzle_init();
@@ -689,8 +691,10 @@ static int puzzle_loop(void)
return PLUGIN_USB_CONNECTED;
break;
}
+#if defined(PUZZLE_SHUFFLE_PICTURE_PRE)
if (button != BUTTON_NONE)
lastbutton = button;
+#endif
}
}