From 27d153db930a231718a18ec5a886c8789077c83a Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 1 May 2011 14:44:20 +0000 Subject: 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 --- apps/plugins/flipit.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/flipit.c') 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) { int i; int button; +#if defined(FLIPIT_SOLVE_PRE) || defined(FLIPIT_STEP_PRE) || \ + defined(FLIPIT_TOGGLE_PRE) || defined(FLIPIT_UP_PRE) int lastbutton = BUTTON_NONE; +#endif flipit_init(); while(true) { @@ -729,8 +732,11 @@ static bool flipit_loop(void) return PLUGIN_USB_CONNECTED; break; } +#if defined(FLIPIT_SOLVE_PRE) || defined(FLIPIT_STEP_PRE) || \ + defined(FLIPIT_TOGGLE_PRE) || defined(FLIPIT_UP_PRE) if (button != BUTTON_NONE) lastbutton = button; +#endif } } -- cgit v1.2.3