summaryrefslogtreecommitdiff
path: root/image/jpeg.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-29 00:17:01 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-29 00:17:01 +0000
commita96fe992abf58fccb78263da3d7f2a68d2352d95 (patch)
treed2100b426fbdce6874870e78412016da244f840a /image/jpeg.c
parent64d47f313ad292a0731435946cba33d1515ba3d5 (diff)
downloadnetsurf-a96fe992abf58fccb78263da3d7f2a68d2352d95.tar.gz
netsurf-a96fe992abf58fccb78263da3d7f2a68d2352d95.tar.bz2
Avoid unused variable if targetting RISC OS and the jpeg library has been built to output BGR.
svn path=/trunk/netsurf/; revision=6978
Diffstat (limited to 'image/jpeg.c')
-rw-r--r--image/jpeg.c3
1 files changed, 3 insertions, 0 deletions
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);