summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-04-12 11:22:46 +0100
committerRobin Watts <robin.watts@artifex.com>2016-04-12 11:55:31 +0100
commit37cf22a58218795b0ef7a084efbf7248b8d09263 (patch)
tree9baba58ed1d79687faf6f13740f3b5c815295916 /source/pdf
parentc702080ae741f08d04788fd415b2a870c6e269e7 (diff)
downloadmupdf-37cf22a58218795b0ef7a084efbf7248b8d09263.tar.xz
Silence some warnings in release builds.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-font.c1
-rw-r--r--source/pdf/pdf-store.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c
index c3513cbb..ad4a29e9 100644
--- a/source/pdf/pdf-font.c
+++ b/source/pdf/pdf-font.c
@@ -878,6 +878,7 @@ pdf_load_hail_mary_font(fz_context *ctx, pdf_document *doc)
existing = fz_store_item(ctx, &hail_mary_store_type, fontdesc, fontdesc->size, &hail_mary_store_type);
assert(existing == NULL);
+ (void)existing; /* Silence warning in release builds */
return fontdesc;
}
diff --git a/source/pdf/pdf-store.c b/source/pdf/pdf-store.c
index b58d2667..81dd6f0f 100644
--- a/source/pdf/pdf-store.c
+++ b/source/pdf/pdf-store.c
@@ -57,6 +57,7 @@ pdf_store_item(fz_context *ctx, pdf_obj *key, void *val, unsigned int itemsize)
void *existing;
existing = fz_store_item(ctx, key, val, itemsize, &pdf_obj_store_type);
assert(existing == NULL);
+ (void)existing; /* Silence warning in release builds */
}
void *