Avoid unused variable if targetting RISC OS and the jpeg library has been built to output BGR.

svn path=/trunk/netsurf/; revision=6978
This commit is contained in:
John Mark Bell 2009-03-29 00:17:01 +00:00
parent 64d47f313a
commit a96fe992ab
1 changed files with 3 additions and 0 deletions

View File

@ -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);