From 58007a25a03b5aa3cb5242c3a23a81cefb59d23f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 16 Mar 2016 16:02:20 +0000 Subject: Avoid unused var warnings in Memento ref counting code. --- source/pdf/pdf-object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pdf') 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) -- cgit v1.2.3