forked from len0rd/rockbox
Fix h100 red and other warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30384 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
41b04e55eb
commit
0c4c81620f
3 changed files with 4 additions and 6 deletions
|
|
@ -128,6 +128,7 @@ static struct trackdata trackdata[MAX_TRACK_ENTRIES];
|
|||
static unsigned int current_track_counter = 0;
|
||||
|
||||
#ifndef SIMULATOR
|
||||
static void stop_playing(void);
|
||||
/* Play time of the previous track */
|
||||
static unsigned long prev_track_elapsed;
|
||||
|
||||
|
|
@ -493,7 +494,6 @@ unsigned long mpeg_get_last_header(void)
|
|||
#endif /* !SIMULATOR */
|
||||
}
|
||||
|
||||
static void stop_playing(void);
|
||||
static void do_stop(void)
|
||||
{
|
||||
is_playing = false;
|
||||
|
|
|
|||
|
|
@ -3905,9 +3905,7 @@ static bool allocate_tagcache(void)
|
|||
static bool tagcache_dumpload(void)
|
||||
{
|
||||
struct statefile_header shdr;
|
||||
int fd, rc;
|
||||
long offpos;
|
||||
int i, handle;
|
||||
int fd, rc, handle;
|
||||
|
||||
fd = open(TAGCACHE_STATEFILE, O_RDONLY);
|
||||
if (fd < 0)
|
||||
|
|
@ -3932,7 +3930,7 @@ static bool tagcache_dumpload(void)
|
|||
/* Lets allocate real memory and load it */
|
||||
handle = core_alloc_ex("tc ramcache", shdr.tc_stat.ramcache_allocated, &ops);
|
||||
ramcache_hdr = core_get_data(handle);
|
||||
moev_lock++;
|
||||
move_lock++;
|
||||
rc = read(fd, ramcache_hdr, shdr.tc_stat.ramcache_allocated);
|
||||
move_lock--;
|
||||
close(fd);
|
||||
|
|
|
|||
|
|
@ -765,7 +765,7 @@ void buflib_print_block_at(struct buflib_context *ctx, int block_num,
|
|||
block_num -= 1;
|
||||
}
|
||||
snprintf(buf, bufsize, "%8p: val: %4ld (%s)",
|
||||
this, this->val,
|
||||
this, (long)this->val,
|
||||
this->val > 0? this[3].name:"<unallocated>");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue