diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-28 17:03:45 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-28 17:03:45 +0000 |
| commit | 99257101f266ce5193de08027d8f5b067f0d5f30 (patch) | |
| tree | 803e907d56f46c15e92b5370a34b1ceb1ba6293a | |
| parent | 4f7a73aad84cf7b2f60b2975479281e65daaca69 (diff) | |
| download | rockbox-99257101f266ce5193de08027d8f5b067f0d5f30.zip rockbox-99257101f266ce5193de08027d8f5b067f0d5f30.tar.gz rockbox-99257101f266ce5193de08027d8f5b067f0d5f30.tar.bz2 rockbox-99257101f266ce5193de08027d8f5b067f0d5f30.tar.xz | |
Fix a 'set but not used' warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30615 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/skin_engine/skin_render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c index 5a64be1..369bd46 100644 --- a/apps/gui/skin_engine/skin_render.c +++ b/apps/gui/skin_engine/skin_render.c @@ -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) |