Fix a 'set but not used' warning.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30615 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2011-09-28 17:03:45 +00:00
parent 4f7a73aad8
commit 99257101f2

View file

@ -303,7 +303,9 @@ static void do_tags_in_hidden_conditional(struct skin_element* branch,
else if (branch->type == LINE && branch->children_count)
{
struct skin_element *child = branch->children[0];
#if defined(HAVE_LCD_BITMAP) || defined(HAVE_ALBUMART)
struct wps_token *token;
#endif
while (child)
{
if (child->type == CONDITIONAL)
@ -321,7 +323,9 @@ static void do_tags_in_hidden_conditional(struct skin_element* branch,
child = child->next;
continue;
}
#if defined(HAVE_LCD_BITMAP) || defined(HAVE_ALBUMART)
token = (struct wps_token *)child->data;
#endif
#ifdef HAVE_LCD_BITMAP
/* clear all pictures in the conditional and nested ones */
if (token->type == SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY)