From e7aeebf0bfe5f673818f30757b23fea7b8436b81 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 7 Aug 2006 22:34:20 +0000 Subject: Fix sim warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10481 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/gray_core.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/plugins/lib/gray_core.c b/apps/plugins/lib/gray_core.c index 89d12ca58b..f08189dbc2 100644 --- a/apps/plugins/lib/gray_core.c +++ b/apps/plugins/lib/gray_core.c @@ -1470,7 +1470,10 @@ static void gray_screendump_hook(int fd) { int i; int x, y; - int gx, gy, mask; + int gx, gy; +#if (LCD_DEPTH == 1) || !defined(SIMULATOR) + int mask; +#endif #if LCD_PIXELFORMAT == HORIZONTAL_PACKING unsigned data; #else @@ -1629,9 +1632,7 @@ static void gray_screendump_hook(int fd) if ((unsigned)gy < (unsigned)_gray_info.height) { /* line contains greyscale (and maybe b&w) graphics */ -#ifdef SIMULATOR - (void)mask; -#else +#ifndef SIMULATOR unsigned char *grayptr = _gray_info.plane_data + MULU16(_gray_info.width, gy >> 3); mask = 1 << (gy & 7); -- cgit v1.2.3