[prev in list] [next in list] [prev in thread] [next in thread]
List: rockbox-cvs
Subject: Buschel: r29920 - in trunk/apps: . plugins
From: mailer () svn ! rockbox ! org
Date: 2011-05-23 19:09:04
Message-ID: 201105231909.p4NJ94Ec018929 () giant ! haxx ! se
[Download RAW message or body]
Date: 2011-05-23 21:09:04 +0200 (Mon, 23 May 2011)
New Revision: 29920
Log Message:
Remove next reported 'set but unused' warnings.
Modified:
trunk/apps/mpeg.c
trunk/apps/plugins/starfield.c
Modified: trunk/apps/mpeg.c
===================================================================
--- trunk/apps/mpeg.c 2011-05-23 18:28:08 UTC (rev 29919)
+++ trunk/apps/mpeg.c 2011-05-23 19:09:04 UTC (rev 29920)
@@ -2739,7 +2739,6 @@
char name_buf[MAX_PATH+1];
const char* file;
int steps = 1;
- int index;
do {
file = playlist_peek(steps, name_buf, sizeof(name_buf));
@@ -2750,7 +2749,7 @@
break;
continue;
}
- index = playlist_next(steps);
+ playlist_next(steps);
current_track_counter++;
is_playing = true;
playing = true;
@@ -2768,7 +2767,6 @@
char name_buf[MAX_PATH+1];
const char* file;
int steps = -1;
- int index;
do {
file = playlist_peek(steps, name_buf, sizeof(name_buf));
@@ -2778,7 +2776,7 @@
steps--;
continue;
}
- index = playlist_next(steps);
+ playlist_next(steps);
current_track_counter++;
is_playing = true;
playing = true;
Modified: trunk/apps/plugins/starfield.c
===================================================================
--- trunk/apps/plugins/starfield.c 2011-05-23 18:28:08 UTC (rev 29919)
+++ trunk/apps/plugins/starfield.c 2011-05-23 19:09:04 UTC (rev 29920)
@@ -395,7 +395,7 @@
{
int button, avg_peak, t_disp=0;
int font_h, font_w;
- bool pulse=true;
+ bool pulse __attribute__ ((unused)) = true; /* 'unused' resolves warnings */
rb->lcd_getstringsize("A", &font_w, &font_h);
starfield_init(&starfield);
starfield_add_stars(&starfield, INIT_STARS);
_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic