summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-23 19:09:04 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-23 19:09:04 +0000
commitecb4d2d9a72f223f792e435c3c50d19022a708d4 (patch)
tree8aa3219690d9b12b860365a22002afd1f770b200
parent8767ba9a85761ad958e8e74af635ec1ba4eba8f3 (diff)
downloadrockbox-ecb4d2d9a72f223f792e435c3c50d19022a708d4.tar.gz
rockbox-ecb4d2d9a72f223f792e435c3c50d19022a708d4.zip
Remove next reported 'set but unused' warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29920 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/mpeg.c6
-rw-r--r--apps/plugins/starfield.c2
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c
index 62947e0ae7..b11445f947 100644
--- a/apps/mpeg.c
+++ b/apps/mpeg.c
@@ -2739,7 +2739,6 @@ void audio_next(void)
2739 char name_buf[MAX_PATH+1]; 2739 char name_buf[MAX_PATH+1];
2740 const char* file; 2740 const char* file;
2741 int steps = 1; 2741 int steps = 1;
2742 int index;
2743 2742
2744 do { 2743 do {
2745 file = playlist_peek(steps, name_buf, sizeof(name_buf)); 2744 file = playlist_peek(steps, name_buf, sizeof(name_buf));
@@ -2750,7 +2749,7 @@ void audio_next(void)
2750 break; 2749 break;
2751 continue; 2750 continue;
2752 } 2751 }
2753 index = playlist_next(steps); 2752 playlist_next(steps);
2754 current_track_counter++; 2753 current_track_counter++;
2755 is_playing = true; 2754 is_playing = true;
2756 playing = true; 2755 playing = true;
@@ -2768,7 +2767,6 @@ void audio_prev(void)
2768 char name_buf[MAX_PATH+1]; 2767 char name_buf[MAX_PATH+1];
2769 const char* file; 2768 const char* file;
2770 int steps = -1; 2769 int steps = -1;
2771 int index;
2772 2770
2773 do { 2771 do {
2774 file = playlist_peek(steps, name_buf, sizeof(name_buf)); 2772 file = playlist_peek(steps, name_buf, sizeof(name_buf));
@@ -2778,7 +2776,7 @@ void audio_prev(void)
2778 steps--; 2776 steps--;
2779 continue; 2777 continue;
2780 } 2778 }
2781 index = playlist_next(steps); 2779 playlist_next(steps);
2782 current_track_counter++; 2780 current_track_counter++;
2783 is_playing = true; 2781 is_playing = true;
2784 playing = true; 2782 playing = true;
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c
index 9d4be34629..5e832aa38a 100644
--- a/apps/plugins/starfield.c
+++ b/apps/plugins/starfield.c
@@ -395,7 +395,7 @@ int plugin_main(void)
395{ 395{
396 int button, avg_peak, t_disp=0; 396 int button, avg_peak, t_disp=0;
397 int font_h, font_w; 397 int font_h, font_w;
398 bool pulse=true; 398 bool pulse __attribute__ ((unused)) = true; /* 'unused' resolves warnings */
399 rb->lcd_getstringsize("A", &font_w, &font_h); 399 rb->lcd_getstringsize("A", &font_w, &font_h);
400 starfield_init(&starfield); 400 starfield_init(&starfield);
401 starfield_add_stars(&starfield, INIT_STARS); 401 starfield_add_stars(&starfield, INIT_STARS);