From 0c4c81620f33cbaf7114a6f98de52e26d07e038d Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 30 Aug 2011 14:32:16 +0000 Subject: Fix h100 red and other warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30384 a1c6a512-1295-4272-9138-f99709370657 --- apps/mpeg.c | 2 +- apps/tagcache.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'apps') diff --git a/apps/mpeg.c b/apps/mpeg.c index 2beece1c0c..2a2821bcda 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c @@ -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; diff --git a/apps/tagcache.c b/apps/tagcache.c index 5ab77264f6..e3f2f4fe68 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -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); -- cgit v1.2.3