summaryrefslogtreecommitdiff
path: root/source/pdf
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 /source/pdf
parentf1254a760f718b8d7cbf687e8798ddd02806bc0c (diff)
downloadmupdf-58007a25a03b5aa3cb5242c3a23a81cefb59d23f.tar.xz
Avoid unused var warnings in Memento ref counting code.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-object.c4
1 files changed, 2 insertions, 2 deletions
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)