diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-17 20:53:28 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-17 20:53:28 +0000 |
| commit | e14bda521d0e396777df4fdc965335e23e8805de (patch) | |
| tree | e85b8f0fab678f7fd3ded2af7f508426037863cc /apps/plugins | |
| parent | d91e67acc97263504a7338856b055d565e14c99a (diff) | |
| download | rockbox-e14bda521d0e396777df4fdc965335e23e8805de.zip rockbox-e14bda521d0e396777df4fdc965335e23e8805de.tar.gz rockbox-e14bda521d0e396777df4fdc965335e23e8805de.tar.bz2 rockbox-e14bda521d0e396777df4fdc965335e23e8805de.tar.xz | |
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/plugins')
| -rw-r--r-- | apps/plugins/lrcplayer.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c index 4fb94d7..f0b3e47 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) { |