diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-04-12 11:22:46 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-04-12 11:55:31 +0100 |
commit | 37cf22a58218795b0ef7a084efbf7248b8d09263 (patch) | |
tree | 9baba58ed1d79687faf6f13740f3b5c815295916 | |
parent | c702080ae741f08d04788fd415b2a870c6e269e7 (diff) | |
download | mupdf-37cf22a58218795b0ef7a084efbf7248b8d09263.tar.xz |
Silence some warnings in release builds.
-rw-r--r-- | source/fitz/draw-edge.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-font.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-store.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/source/fitz/draw-edge.c b/source/fitz/draw-edge.c index 53b77daf..ac6da414 100644 --- a/source/fitz/draw-edge.c +++ b/source/fitz/draw-edge.c @@ -758,6 +758,7 @@ undelta_aa(fz_context *ctx, unsigned char * restrict out, int * restrict in, int { int d = 0; const int scale = fz_aa_scale; + (void)scale; /* Avoid warnings in some builds */ while (n--) { 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 * |