Fix warning (move variable into #ifdef section).

Change-Id: Ic6ba4b786eef00eab7f20abd5fbf2bcb8977993a
This commit is contained in:
Thomas Martitz 2013-06-09 21:08:49 +02:00
parent 770fadddd6
commit 4263f67e4b

View file

@ -84,12 +84,12 @@ struct skin_stats *skin_get_stats(int number, int screen)
static void gui_skin_reset(struct gui_skin *skin)
{
struct wps_data *data;
struct skin_albumart *aa_save;
skin->failsafe_loaded = false;
skin->needs_full_update = true;
skin->gui_wps.data = data = &skin->data;
/* copy to temp var to protect against memset */
#ifdef HAVE_ALBUMART
struct skin_albumart *aa_save;
/* copy to temp var to protect against memset */
if ((aa_save = SKINOFFSETTOPTR(get_skin_buffer(data), data->albumart)))
{
short old_width, old_height;