summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-17 20:53:28 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-17 20:53:28 +0000
commite14bda521d0e396777df4fdc965335e23e8805de (patch)
treee85b8f0fab678f7fd3ded2af7f508426037863cc /apps/tree.c
parentd91e67acc97263504a7338856b055d565e14c99a (diff)
Fix some 'set but not used' warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30565 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 24acd5ac69..ca4c567235 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -619,7 +619,10 @@ static int dirbrowse(void)
{
int numentries=0;
char buf[MAX_PATH];
- int button, oldbutton;
+ int button;
+#ifdef HAVE_LCD_BITMAP
+ int oldbutton;
+#endif
bool reload_root = false;
int lastfilter = *tc.dirfilter;
bool lastsortcase = global_settings.sort_case;
@@ -663,7 +666,9 @@ static int dirbrowse(void)
button = get_action(CONTEXT_TREE,
list_do_action_timeout(&tree_lists, HZ/2));
+#ifdef HAVE_LCD_BITMAP
oldbutton = button;
+#endif
gui_synclist_do_button(&tree_lists, &button,LIST_WRAP_UNLESS_HELD);
tc.selected_item = gui_synclist_get_sel_pos(&tree_lists);
switch ( button ) {