Fix some 'set but not used' warnings.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30565 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2011-09-17 20:53:28 +00:00
parent d91e67acc9
commit e14bda521d
3 changed files with 15 additions and 4 deletions

View File

@ -54,11 +54,9 @@ void list_draw(struct screen *display, struct gui_synclist *gui_list)
bool draw_icons = (gui_list->callback_get_item_icon != NULL);
bool draw_cursor;
int i;
int lines;
int start, end;
display->set_viewport(NULL);
lines = display->getnblines();
display->clear_display();
start = 0;

View File

@ -449,7 +449,11 @@ static struct lrc_brpos *calc_brpos(struct lrc_line *lrc_line, int i)
int nword;
int word_count, word_width;
const unsigned char *str;
} sp, cr;
}
#ifndef HAVE_LCD_CHARCELLS
sp,
#endif
cr;
lrc_buffer_used = (lrc_buffer_used+3)&~3; /* 4 bytes aligned */
lrc_brpos = (struct lrc_brpos *) &lrc_buffer[lrc_buffer_used];
@ -508,15 +512,19 @@ static struct lrc_brpos *calc_brpos(struct lrc_line *lrc_line, int i)
cr.nword = lrc_line->nword;
lrc_word = lrc_line->words+cr.nword;
cr.str = (lrc_word-1)->word;
#ifndef HAVE_LCD_CHARCELLS
sp.word_count = 0;
sp.word_width = 0;
sp.nword = 0;
sp.count = 0;
sp.width = 0;
#endif
do {
cr.count = 0;
cr.width = 0;
#ifndef HAVE_LCD_CHARCELLS
sp.str = NULL;
#endif
while (1)
{

View File

@ -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 ) {