forked from len0rd/rockbox
Remove next reported 'set but unused' warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29920 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8767ba9a85
commit
ecb4d2d9a7
2 changed files with 3 additions and 5 deletions
|
@ -2739,7 +2739,6 @@ void audio_next(void)
|
||||||
char name_buf[MAX_PATH+1];
|
char name_buf[MAX_PATH+1];
|
||||||
const char* file;
|
const char* file;
|
||||||
int steps = 1;
|
int steps = 1;
|
||||||
int index;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
file = playlist_peek(steps, name_buf, sizeof(name_buf));
|
file = playlist_peek(steps, name_buf, sizeof(name_buf));
|
||||||
|
@ -2750,7 +2749,7 @@ void audio_next(void)
|
||||||
break;
|
break;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
index = playlist_next(steps);
|
playlist_next(steps);
|
||||||
current_track_counter++;
|
current_track_counter++;
|
||||||
is_playing = true;
|
is_playing = true;
|
||||||
playing = true;
|
playing = true;
|
||||||
|
@ -2768,7 +2767,6 @@ void audio_prev(void)
|
||||||
char name_buf[MAX_PATH+1];
|
char name_buf[MAX_PATH+1];
|
||||||
const char* file;
|
const char* file;
|
||||||
int steps = -1;
|
int steps = -1;
|
||||||
int index;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
file = playlist_peek(steps, name_buf, sizeof(name_buf));
|
file = playlist_peek(steps, name_buf, sizeof(name_buf));
|
||||||
|
@ -2778,7 +2776,7 @@ void audio_prev(void)
|
||||||
steps--;
|
steps--;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
index = playlist_next(steps);
|
playlist_next(steps);
|
||||||
current_track_counter++;
|
current_track_counter++;
|
||||||
is_playing = true;
|
is_playing = true;
|
||||||
playing = true;
|
playing = true;
|
||||||
|
|
|
@ -395,7 +395,7 @@ int plugin_main(void)
|
||||||
{
|
{
|
||||||
int button, avg_peak, t_disp=0;
|
int button, avg_peak, t_disp=0;
|
||||||
int font_h, font_w;
|
int font_h, font_w;
|
||||||
bool pulse=true;
|
bool pulse __attribute__ ((unused)) = true; /* 'unused' resolves warnings */
|
||||||
rb->lcd_getstringsize("A", &font_w, &font_h);
|
rb->lcd_getstringsize("A", &font_w, &font_h);
|
||||||
starfield_init(&starfield);
|
starfield_init(&starfield);
|
||||||
starfield_add_stars(&starfield, INIT_STARS);
|
starfield_add_stars(&starfield, INIT_STARS);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue