From e14bda521d0e396777df4fdc965335e23e8805de Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sat, 17 Sep 2011 20:53:28 +0000 Subject: Fix some 'set but not used' warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30565 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 24acd5a..ca4c567 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 ) { -- cgit v1.1