From b91ad2b1ffdb2b52bcb23a81fb272ab5d4e9877b Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Mon, 10 Mar 2008 14:29:43 +0000 Subject: Wrap jpeg library check in #ifdef riscos, as we don't care on non-RISC OS. Silences warning. svn path=/trunk/netsurf/; revision=3921 --- image/jpeg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'image') diff --git a/image/jpeg.c b/image/jpeg.c index 57c70213e..d4f5f537d 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -40,13 +40,14 @@ #include "utils/messages.h" #include "utils/utils.h" - +#ifdef riscos /* We prefer the library to be configured with these options to save * copying data during decoding. */ #if RGB_RED != 0 || RGB_GREEN != 1 || RGB_BLUE != 2 || RGB_PIXELSIZE != 4 #warning JPEG library not optimally configured. Decoding will be slower. #endif - +/* but we don't care if we're not on RISC OS */ +#endif static char nsjpeg_error_buffer[JMSG_LENGTH_MAX]; -- cgit v1.2.3