1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Andree Buschmann 2011-05-01 14:44:20 +00:00
parent f7c4594134
commit 27d153db93
11 changed files with 63 additions and 11 deletions

View file

@ -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;
}