From 00d6cfd389ed5fcd4d0e32ff6fb23fbff01bf1ee Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Tue, 26 May 2009 20:26:05 +0000 Subject: Fix yellow when building with HAVE_ALBUMART, without HAVE_JPEG/HAVE_BMP_SCALING. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21092 a1c6a512-1295-4272-9138-f99709370657 --- apps/buffering.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/buffering.c') diff --git a/apps/buffering.c b/apps/buffering.c index 4f2ec324de..afc444a456 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -849,7 +849,9 @@ static int load_image(int fd, const char *path) struct bitmap *bmp = (struct bitmap *)&buffer[buf_widx]; /* FIXME: alignment may be needed for the data buffer. */ bmp->data = &buffer[buf_widx + sizeof(struct bitmap)]; - +#ifndef HAVE_JPEG + (void) path; +#endif #if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) bmp->maskdata = NULL; #endif -- cgit v1.2.3