From 882a2344b866284cbe57ae18062d47f5c43e7fe3 Mon Sep 17 00:00:00 2001 From: Jorge Arellano Cid Date: Sat, 31 Jan 2009 16:41:00 -0300 Subject: Avoid a couple of compiler warnings in jpeg.c --- src/jpeg.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/jpeg.c') diff --git a/src/jpeg.c b/src/jpeg.c index f27d886f..80c84b60 100644 --- a/src/jpeg.c +++ b/src/jpeg.c @@ -105,7 +105,12 @@ static void Jpeg_close(DilloJpeg *jpeg, CacheClient_t *Client) dFree(jpeg); } -static void init_source(j_decompress_ptr cinfo) +/* + * The proper signature is: + * static void init_source(j_decompress_ptr cinfo) + * (declaring it with no parameter avoids a compiler warning) + */ +static void init_source() { } @@ -157,7 +162,12 @@ static void skip_input_data(j_decompress_ptr cinfo, long num_bytes) } } -static void term_source(j_decompress_ptr cinfo) +/* + * The proper signature is: + * static void term_source(j_decompress_ptr cinfo) + * (declaring it with no parameter avoids a compiler warning) + */ +static void term_source() { } -- cgit v1.2.3