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/lrcplayer.c | |
parent | d91e67acc97263504a7338856b055d565e14c99a (diff) | |
download | rockbox-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
Diffstat (limited to 'apps/plugins/lrcplayer.c')
-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 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) | |||
449 | int nword; | 449 | int nword; |
450 | int word_count, word_width; | 450 | int word_count, word_width; |
451 | const unsigned char *str; | 451 | const unsigned char *str; |
452 | } sp, cr; | 452 | } |
453 | #ifndef HAVE_LCD_CHARCELLS | ||
454 | sp, | ||
455 | #endif | ||
456 | cr; | ||
453 | 457 | ||
454 | lrc_buffer_used = (lrc_buffer_used+3)&~3; /* 4 bytes aligned */ | 458 | lrc_buffer_used = (lrc_buffer_used+3)&~3; /* 4 bytes aligned */ |
455 | lrc_brpos = (struct lrc_brpos *) &lrc_buffer[lrc_buffer_used]; | 459 | 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) | |||
508 | cr.nword = lrc_line->nword; | 512 | cr.nword = lrc_line->nword; |
509 | lrc_word = lrc_line->words+cr.nword; | 513 | lrc_word = lrc_line->words+cr.nword; |
510 | cr.str = (lrc_word-1)->word; | 514 | cr.str = (lrc_word-1)->word; |
515 | #ifndef HAVE_LCD_CHARCELLS | ||
511 | sp.word_count = 0; | 516 | sp.word_count = 0; |
512 | sp.word_width = 0; | 517 | sp.word_width = 0; |
513 | sp.nword = 0; | 518 | sp.nword = 0; |
514 | sp.count = 0; | 519 | sp.count = 0; |
515 | sp.width = 0; | 520 | sp.width = 0; |
521 | #endif | ||
516 | do { | 522 | do { |
517 | cr.count = 0; | 523 | cr.count = 0; |
518 | cr.width = 0; | 524 | cr.width = 0; |
525 | #ifndef HAVE_LCD_CHARCELLS | ||
519 | sp.str = NULL; | 526 | sp.str = NULL; |
527 | #endif | ||
520 | 528 | ||
521 | while (1) | 529 | while (1) |
522 | { | 530 | { |