summaryrefslogtreecommitdiffstats
path: root/apps/plugins/fractals/fractal.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/fractals/fractal.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/fractals/fractal.c')
-rw-r--r--apps/plugins/fractals/fractal.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/plugins/fractals/fractal.c b/apps/plugins/fractals/fractal.c
index 21d33387b5..5d8413ca6f 100644
--- a/apps/plugins/fractals/fractal.c
+++ b/apps/plugins/fractals/fractal.c
@@ -93,7 +93,12 @@ static void cleanup(void)
enum plugin_status plugin_start(const void* parameter)
{
+#if defined(FRACTAL_ZOOM_OUT_PRE) || \
+ defined(FRACTAL_ZOOM_IN_PRE) || \
+ defined(FRACTAL_PRECISION_DEC_PRE) || \
+ defined(FRACTAL_PRECISION_INC)
long lastbutton = BUTTON_NONE;
+#endif
int redraw = REDRAW_FULL;
struct fractal_ops *ops = &mandelbrot_ops;
@@ -246,9 +251,13 @@ enum plugin_status plugin_start(const void* parameter)
exit_on_usb(button);
break;
}
-
+#if defined(FRACTAL_ZOOM_OUT_PRE) || \
+ defined(FRACTAL_ZOOM_IN_PRE) || \
+ defined(FRACTAL_PRECISION_DEC_PRE) || \
+ defined(FRACTAL_PRECISION_INC)
if (button != BUTTON_NONE)
lastbutton = button;
+#endif
}
return PLUGIN_OK;
}