From a96fe992abf58fccb78263da3d7f2a68d2352d95 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 29 Mar 2009 00:17:01 +0000 Subject: Avoid unused variable if targetting RISC OS and the jpeg library has been built to output BGR. svn path=/trunk/netsurf/; revision=6978 --- image/jpeg.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'image/jpeg.c') diff --git a/image/jpeg.c b/image/jpeg.c index 8ed0ee299..41cd3db74 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -125,8 +125,11 @@ bool nsjpeg_convert(struct content *c, int w, int h) rowstride = bitmap_get_rowstride(bitmap); do { +#if RGB_RED != 0 || RGB_GREEN != 1 || RGB_BLUE != 2 || RGB_PIXELSIZE != 4 int i; +#endif JSAMPROW scanlines[1]; + scanlines[0] = (JSAMPROW) (pixels + rowstride * cinfo.output_scanline); jpeg_read_scanlines(&cinfo, scanlines, 1); -- cgit v1.2.3