diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 14:44:20 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 14:44:20 +0000 |
| commit | 27d153db930a231718a18ec5a886c8789077c83a (patch) | |
| tree | 9d29fd6c1348f3ca1742774cb242177b3d0ca82b /apps/plugins/flipit.c | |
| parent | f7c45941344ecfbcdd5d9b311b61573d37c6ef58 (diff) | |
| download | rockbox-27d153db930a231718a18ec5a886c8789077c83a.zip rockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.gz rockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.bz2 rockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.xz | |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c index a837b1a..a61839c 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 } } |