From a5034bd244c143f41f49df79d997dd0e0a88ab9b Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Sun, 27 Feb 2011 23:22:09 +0000 Subject: Fix yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29449 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/file.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'firmware/common') diff --git a/firmware/common/file.c b/firmware/common/file.c index 272cf8a80b..8f6bfa051b 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -496,10 +496,13 @@ static int flush_cache(int fd) static int readwrite(int fd, void* buf, long count, bool write) { long sectors; - long i; long nread=0; struct filedesc* file; - int rc, rc2; + int rc; +#ifdef STORAGE_NEEDS_ALIGN + long i; + int rc2; +#endif if (fd < 0 || fd > MAX_OPEN_FILES-1) { errno = EINVAL; -- cgit v1.2.3