diff options
author | Thomas Martitz <kugel@rockbox.org> | 2013-06-09 21:08:49 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2013-06-09 21:08:49 +0200 |
commit | 4263f67e4b556607ad4c49915f90ddb11e5a3d92 (patch) | |
tree | 0234ffb0f47450e9a8f98821a568fc865ae74bcc | |
parent | 770fadddd6409898800fb0605548cd2425a58c4f (diff) | |
download | rockbox-4263f67.tar.gz rockbox-4263f67.zip |
Fix warning (move variable into #ifdef section).
Change-Id: Ic6ba4b786eef00eab7f20abd5fbf2bcb8977993a
-rw-r--r-- | apps/gui/skin_engine/skin_engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c index c2ed2cdb8c..0b6f099b2b 100644 --- a/apps/gui/skin_engine/skin_engine.c +++ b/apps/gui/skin_engine/skin_engine.c @@ -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; |