summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-15 16:29:50 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-15 16:33:10 +0100
commit344200647a66310038be19125483b1d62483845d (patch)
tree16f51067e4245b8f10ea6a20f2f6a9b9f2a94ce4 /source/fitz
parent5dcb64bc4074e583a3fd2155c17a270feccac39f (diff)
downloadmupdf-344200647a66310038be19125483b1d62483845d.tar.xz
Drop UNUSED macro -- it dirties the namespace and is not needed.
We compile with -Wno-unused-parameters instead.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/error.c2
-rw-r--r--source/fitz/filter-dct.c1
-rw-r--r--source/fitz/load-jpeg.c1
3 files changed, 1 insertions, 3 deletions
diff --git a/source/fitz/error.c b/source/fitz/error.c
index 724fd078..a99a3f83 100644
--- a/source/fitz/error.c
+++ b/source/fitz/error.c
@@ -8,7 +8,7 @@
void fz_var_imp(void *var)
{
- UNUSED(var); /* Do nothing */
+ /* Do nothing */
}
void fz_flush_warnings(fz_context *ctx)
diff --git a/source/fitz/filter-dct.c b/source/fitz/filter-dct.c
index e48f90fd..c18ae79d 100644
--- a/source/fitz/filter-dct.c
+++ b/source/fitz/filter-dct.c
@@ -52,7 +52,6 @@ static void
fz_dct_mem_free(j_common_ptr cinfo, void *object, size_t size)
{
fz_dctd *state = JZ_DCT_STATE_FROM_CINFO(cinfo);
- UNUSED(size);
fz_free(state->ctx, object);
}
diff --git a/source/fitz/load-jpeg.c b/source/fitz/load-jpeg.c
index 2603ce7d..2640a8a4 100644
--- a/source/fitz/load-jpeg.c
+++ b/source/fitz/load-jpeg.c
@@ -27,7 +27,6 @@ static void
fz_jpg_mem_free(j_common_ptr cinfo, void *object, size_t size)
{
fz_context *ctx = JZ_CTX_FROM_CINFO(cinfo);
- UNUSED(size);
fz_free(ctx, object);
}