summaryrefslogtreecommitdiffstats
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
parentd91e67acc97263504a7338856b055d565e14c99a (diff)
downloadrockbox-e14bda521d0e396777df4fdc965335e23e8805de.tar.gz
rockbox-e14bda521d0e396777df4fdc965335e23e8805de.zip
Fix some 'set but not used' warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30565 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/charcell/list.c2
-rw-r--r--apps/plugins/lrcplayer.c10
-rw-r--r--apps/tree.c7
3 files changed, 15 insertions, 4 deletions
diff --git a/apps/gui/charcell/list.c b/apps/gui/charcell/list.c
index a0ab02841f..15112adb51 100644
--- a/apps/gui/charcell/list.c
+++ b/apps/gui/charcell/list.c
@@ -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;
diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c
index 4fb94d741e..f0b3e47728 100644
--- a/apps/plugins/lrcplayer.c
+++ b/apps/plugins/lrcplayer.c
@@ -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)
{
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 ) {