From f19d6a5e1d53feedf76a7edd7756386d9e52339b Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Tue, 3 May 2011 20:28:56 +0000 Subject: 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 --- apps/tagcache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/tagcache.c') diff --git a/apps/tagcache.c b/apps/tagcache.c index 5abb32a..75191d6 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -1396,7 +1396,9 @@ static bool get_next(struct tagcache_search *tcs) { static char buf[TAG_MAXLEN+32]; struct tagfile_entry entry; +#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) long flag = 0; +#endif if (!tcs->valid || !tc_stat.ready) return false; @@ -1433,7 +1435,9 @@ static bool get_next(struct tagcache_search *tcs) } seeklist = &tcs->seeklist[tcs->list_position]; +#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) flag = seeklist->flag; +#endif tcs->position = seeklist->seek; tcs->idx_id = seeklist->idx_id; tcs->list_position++; -- cgit v1.1