forked from len0rd/rockbox
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
This commit is contained in:
parent
befabb2bab
commit
f19d6a5e1d
4 changed files with 11 additions and 6 deletions
|
|
@ -503,7 +503,9 @@ void rm_get_packet_fd(int fd,RMContext *rmctx, RMPacket *pkt)
|
||||||
int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt)
|
int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt)
|
||||||
{
|
{
|
||||||
int consumed = 0;
|
int consumed = 0;
|
||||||
|
/* rockbox: comment 'set but unused' variables
|
||||||
uint8_t unknown;
|
uint8_t unknown;
|
||||||
|
*/
|
||||||
uint16_t x, place;
|
uint16_t x, place;
|
||||||
uint16_t sps = rmctx->sub_packet_size;
|
uint16_t sps = rmctx->sub_packet_size;
|
||||||
uint16_t h = rmctx->sub_packet_h;
|
uint16_t h = rmctx->sub_packet_h;
|
||||||
|
|
@ -528,11 +530,11 @@ int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt)
|
||||||
" length = %d\n"
|
" length = %d\n"
|
||||||
" stream = %d\n"
|
" stream = %d\n"
|
||||||
" timestamp= %d\n\n",pkt->version,pkt->length,pkt->stream_number,pkt->timestamp);*/
|
" timestamp= %d\n\n",pkt->version,pkt->length,pkt->stream_number,pkt->timestamp);*/
|
||||||
unknown = rm_get_uint8(*src+10);
|
/* unknown =*/ rm_get_uint8(*src+10);
|
||||||
pkt->flags = rm_get_uint8(*src+11);
|
pkt->flags = rm_get_uint8(*src+11);
|
||||||
|
|
||||||
if(pkt->version == 1)
|
if(pkt->version == 1)
|
||||||
unknown = rm_get_uint8(*src+10);
|
/* unknown = */ rm_get_uint8(*src+10);
|
||||||
|
|
||||||
if (pkt->flags & 2) /* keyframe */
|
if (pkt->flags & 2) /* keyframe */
|
||||||
y = rmctx->sub_packet_cnt = 0;
|
y = rmctx->sub_packet_cnt = 0;
|
||||||
|
|
|
||||||
|
|
@ -155,8 +155,8 @@ int main(void)
|
||||||
plasma_frequency = 1;
|
plasma_frequency = 1;
|
||||||
int action, x, y;
|
int action, x, y;
|
||||||
unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0;
|
unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0;
|
||||||
long last_tick = *rb->current_tick;
|
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
|
long last_tick = *rb->current_tick;
|
||||||
int delay;
|
int delay;
|
||||||
int cumulated_lag = 0;
|
int cumulated_lag = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -257,10 +257,10 @@ int main(void)
|
||||||
if (--cumulated_lag <= 0) /* slow decrease */
|
if (--cumulated_lag <= 0) /* slow decrease */
|
||||||
rb->cpu_boost(boosted = false);
|
rb->cpu_boost(boosted = false);
|
||||||
}
|
}
|
||||||
|
last_tick = *rb->current_tick;
|
||||||
#endif
|
#endif
|
||||||
action = pluginlib_getaction(0, plugin_contexts,
|
action = pluginlib_getaction(0, plugin_contexts,
|
||||||
ARRAYLEN(plugin_contexts));
|
ARRAYLEN(plugin_contexts));
|
||||||
last_tick = *rb->current_tick;
|
|
||||||
|
|
||||||
switch(action)
|
switch(action)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,6 @@ static void initmem(void *mem, int size)
|
||||||
|
|
||||||
static byte *loadfile(int fd, int *len)
|
static byte *loadfile(int fd, int *len)
|
||||||
{
|
{
|
||||||
int c;
|
|
||||||
byte *d;
|
byte *d;
|
||||||
|
|
||||||
*len=lseek(fd,0,SEEK_END);
|
*len=lseek(fd,0,SEEK_END);
|
||||||
|
|
@ -136,7 +135,7 @@ static byte *loadfile(int fd, int *len)
|
||||||
}
|
}
|
||||||
lseek(fd,0,SEEK_SET);
|
lseek(fd,0,SEEK_SET);
|
||||||
|
|
||||||
c = read(fd, d, *len);
|
read(fd, d, *len);
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1396,7 +1396,9 @@ static bool get_next(struct tagcache_search *tcs)
|
||||||
{
|
{
|
||||||
static char buf[TAG_MAXLEN+32];
|
static char buf[TAG_MAXLEN+32];
|
||||||
struct tagfile_entry entry;
|
struct tagfile_entry entry;
|
||||||
|
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
|
||||||
long flag = 0;
|
long flag = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!tcs->valid || !tc_stat.ready)
|
if (!tcs->valid || !tc_stat.ready)
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -1433,7 +1435,9 @@ static bool get_next(struct tagcache_search *tcs)
|
||||||
}
|
}
|
||||||
|
|
||||||
seeklist = &tcs->seeklist[tcs->list_position];
|
seeklist = &tcs->seeklist[tcs->list_position];
|
||||||
|
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
|
||||||
flag = seeklist->flag;
|
flag = seeklist->flag;
|
||||||
|
#endif
|
||||||
tcs->position = seeklist->seek;
|
tcs->position = seeklist->seek;
|
||||||
tcs->idx_id = seeklist->idx_id;
|
tcs->idx_id = seeklist->idx_id;
|
||||||
tcs->list_position++;
|
tcs->list_position++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue