summaryrefslogtreecommitdiff
path: root/src/jpeg.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-01-31 16:41:00 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-01-31 16:41:00 -0300
commit882a2344b866284cbe57ae18062d47f5c43e7fe3 (patch)
tree2f54bcaecaca86ac4c229b1ba425eb6037301959 /src/jpeg.c
parent8caee1983cad918283c5b6268d15b7c38c0618f2 (diff)
Avoid a couple of compiler warnings in jpeg.c
Diffstat (limited to 'src/jpeg.c')
-rw-r--r--src/jpeg.c14
1 files changed, 12 insertions, 2 deletions
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()
{
}