summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-03-16 16:02:20 +0000
committerRobin Watts <robin.watts@artifex.com>2016-03-16 16:20:50 +0000
commit58007a25a03b5aa3cb5242c3a23a81cefb59d23f (patch)
tree599241ce70c2aae2937fe78e171e42ea3678f617
parentf1254a760f718b8d7cbf687e8798ddd02806bc0c (diff)
downloadmupdf-58007a25a03b5aa3cb5242c3a23a81cefb59d23f.tar.xz
Avoid unused var warnings in Memento ref counting code.
-rw-r--r--source/fitz/store.c4
-rw-r--r--source/pdf/pdf-object.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/store.c b/source/fitz/store.c
index b995f915..a71fb94d 100644
--- a/source/fitz/store.c
+++ b/source/fitz/store.c
@@ -61,7 +61,7 @@ fz_keep_storable(fz_context *ctx, const fz_storable *sc)
fz_storable *s = (fz_storable *)sc;
if (s && s->refs > 0)
- Memento_takeRef(s);
+ (void)Memento_takeRef(s);
return fz_keep_imp(ctx, s, &s->refs);
}
@@ -80,7 +80,7 @@ fz_drop_storable(fz_context *ctx, const fz_storable *sc)
itself without any operations on the fz_store.
*/
if (s && s->refs > 0)
- Memento_dropRef(s);
+ (void)Memento_dropRef(s);
if (fz_drop_imp(ctx, s, &s->refs))
s->drop(ctx, s);
}
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c
index 902b0645..f2e4551f 100644
--- a/source/pdf/pdf-object.c
+++ b/source/pdf/pdf-object.c
@@ -198,7 +198,7 @@ pdf_keep_obj(fz_context *ctx, pdf_obj *obj)
{
if (obj >= PDF_OBJ__LIMIT)
{
- Memento_takeRef(obj);
+ (void)Memento_takeRef(obj);
obj->refs ++;
}
return obj;
@@ -1718,7 +1718,7 @@ pdf_drop_obj(fz_context *ctx, pdf_obj *obj)
{
if (obj >= PDF_OBJ__LIMIT)
{
- Memento_dropRef(obj);
+ (void)Memento_dropRef(obj);
if (--obj->refs)
return;
if (obj->kind == PDF_ARRAY)