summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-03 20:28:56 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-03 20:28:56 +0000
commitf19d6a5e1d53feedf76a7edd7756386d9e52339b (patch)
tree152203f61b56c9896c53e867b2961cc018ca4ce5 /apps
parentbefabb2bab2736667d681c192bf4cb51b3aca032 (diff)
downloadrockbox-f19d6a5e1d53feedf76a7edd7756386d9e52339b.tar.gz
rockbox-f19d6a5e1d53feedf76a7edd7756386d9e52339b.zip
Fix even more 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29819 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/librm/rm.c6
-rw-r--r--apps/plugins/plasma.c4
-rw-r--r--apps/plugins/rockboy/loader.c3
-rw-r--r--apps/tagcache.c4
4 files changed, 11 insertions, 6 deletions
diff --git a/apps/codecs/librm/rm.c b/apps/codecs/librm/rm.c
index b543da50d7..6bc187bb5e 100644
--- a/apps/codecs/librm/rm.c
+++ b/apps/codecs/librm/rm.c
@@ -503,7 +503,9 @@ void rm_get_packet_fd(int fd,RMContext *rmctx, RMPacket *pkt)
503int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt) 503int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt)
504{ 504{
505 int consumed = 0; 505 int consumed = 0;
506 /* rockbox: comment 'set but unused' variables
506 uint8_t unknown; 507 uint8_t unknown;
508 */
507 uint16_t x, place; 509 uint16_t x, place;
508 uint16_t sps = rmctx->sub_packet_size; 510 uint16_t sps = rmctx->sub_packet_size;
509 uint16_t h = rmctx->sub_packet_h; 511 uint16_t h = rmctx->sub_packet_h;
@@ -528,11 +530,11 @@ int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt)
528 " length = %d\n" 530 " length = %d\n"
529 " stream = %d\n" 531 " stream = %d\n"
530 " timestamp= %d\n\n",pkt->version,pkt->length,pkt->stream_number,pkt->timestamp);*/ 532 " timestamp= %d\n\n",pkt->version,pkt->length,pkt->stream_number,pkt->timestamp);*/
531 unknown = rm_get_uint8(*src+10); 533 /* unknown =*/ rm_get_uint8(*src+10);
532 pkt->flags = rm_get_uint8(*src+11); 534 pkt->flags = rm_get_uint8(*src+11);
533 535
534 if(pkt->version == 1) 536 if(pkt->version == 1)
535 unknown = rm_get_uint8(*src+10); 537 /* unknown = */ rm_get_uint8(*src+10);
536 538
537 if (pkt->flags & 2) /* keyframe */ 539 if (pkt->flags & 2) /* keyframe */
538 y = rmctx->sub_packet_cnt = 0; 540 y = rmctx->sub_packet_cnt = 0;
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c
index 4359e6e8b6..e824593850 100644
--- a/apps/plugins/plasma.c
+++ b/apps/plugins/plasma.c
@@ -155,8 +155,8 @@ int main(void)
155 plasma_frequency = 1; 155 plasma_frequency = 1;
156 int action, x, y; 156 int action, x, y;
157 unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0; 157 unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0;
158 long last_tick = *rb->current_tick;
159#ifdef HAVE_ADJUSTABLE_CPU_FREQ 158#ifdef HAVE_ADJUSTABLE_CPU_FREQ
159 long last_tick = *rb->current_tick;
160 int delay; 160 int delay;
161 int cumulated_lag = 0; 161 int cumulated_lag = 0;
162#endif 162#endif
@@ -257,10 +257,10 @@ int main(void)
257 if (--cumulated_lag <= 0) /* slow decrease */ 257 if (--cumulated_lag <= 0) /* slow decrease */
258 rb->cpu_boost(boosted = false); 258 rb->cpu_boost(boosted = false);
259 } 259 }
260 last_tick = *rb->current_tick;
260#endif 261#endif
261 action = pluginlib_getaction(0, plugin_contexts, 262 action = pluginlib_getaction(0, plugin_contexts,
262 ARRAYLEN(plugin_contexts)); 263 ARRAYLEN(plugin_contexts));
263 last_tick = *rb->current_tick;
264 264
265 switch(action) 265 switch(action)
266 { 266 {
diff --git a/apps/plugins/rockboy/loader.c b/apps/plugins/rockboy/loader.c
index d843ba8a60..6065cf2898 100644
--- a/apps/plugins/rockboy/loader.c
+++ b/apps/plugins/rockboy/loader.c
@@ -124,7 +124,6 @@ static void initmem(void *mem, int size)
124 124
125static byte *loadfile(int fd, int *len) 125static byte *loadfile(int fd, int *len)
126{ 126{
127 int c;
128 byte *d; 127 byte *d;
129 128
130 *len=lseek(fd,0,SEEK_END); 129 *len=lseek(fd,0,SEEK_END);
@@ -136,7 +135,7 @@ static byte *loadfile(int fd, int *len)
136 } 135 }
137 lseek(fd,0,SEEK_SET); 136 lseek(fd,0,SEEK_SET);
138 137
139 c = read(fd, d, *len); 138 read(fd, d, *len);
140 139
141 return d; 140 return d;
142} 141}
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 5abb32a109..75191d678e 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -1396,7 +1396,9 @@ static bool get_next(struct tagcache_search *tcs)
1396{ 1396{
1397 static char buf[TAG_MAXLEN+32]; 1397 static char buf[TAG_MAXLEN+32];
1398 struct tagfile_entry entry; 1398 struct tagfile_entry entry;
1399#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
1399 long flag = 0; 1400 long flag = 0;
1401#endif
1400 1402
1401 if (!tcs->valid || !tc_stat.ready) 1403 if (!tcs->valid || !tc_stat.ready)
1402 return false; 1404 return false;
@@ -1433,7 +1435,9 @@ static bool get_next(struct tagcache_search *tcs)
1433 } 1435 }
1434 1436
1435 seeklist = &tcs->seeklist[tcs->list_position]; 1437 seeklist = &tcs->seeklist[tcs->list_position];
1438#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
1436 flag = seeklist->flag; 1439 flag = seeklist->flag;
1440#endif
1437 tcs->position = seeklist->seek; 1441 tcs->position = seeklist->seek;
1438 tcs->idx_id = seeklist->idx_id; 1442 tcs->idx_id = seeklist->idx_id;
1439 tcs->list_position++; 1443 tcs->list_position++;