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/plugins/lrcplayer.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps/plugins/lrcplayer.c') 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) { -- cgit v1.2.3