summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/context.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-07-08 23:23:31 +0100
committerRobin Watts <robin.watts@artifex.com>2016-07-08 23:24:16 +0100
commitcd826c8526ffeb001db47f8894f69045d223b4fb (patch)
tree08c95f48114a154418989b7dfb79eafa58cca215 /include/mupdf/fitz/context.h
parent16c8afb8322e33a5177251cb56688406c1ec02e5 (diff)
downloadmupdf-cd826c8526ffeb001db47f8894f69045d223b4fb.tar.xz
Avoid warnings in non-Memento builds.
Diffstat (limited to 'include/mupdf/fitz/context.h')
-rw-r--r--include/mupdf/fitz/context.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index ee8ba84e..5f047721 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -607,7 +607,7 @@ fz_keep_imp(fz_context *ctx, void *p, int *refs)
{
if (p)
{
- Memento_takeRef(p);
+ (void)Memento_takeRef(p);
fz_lock(ctx, FZ_LOCK_ALLOC);
if (*refs > 0)
++*refs;
@@ -621,7 +621,7 @@ fz_keep_imp8(fz_context *ctx, void *p, int8_t *refs)
{
if (p)
{
- Memento_takeRef(p);
+ (void)Memento_takeRef(p);
fz_lock(ctx, FZ_LOCK_ALLOC);
if (*refs > 0)
++*refs;
@@ -635,7 +635,7 @@ fz_keep_imp16(fz_context *ctx, void *p, int16_t *refs)
{
if (p)
{
- Memento_takeRef(p);
+ (void)Memento_takeRef(p);
fz_lock(ctx, FZ_LOCK_ALLOC);
if (*refs > 0)
++*refs;
@@ -650,7 +650,7 @@ fz_drop_imp(fz_context *ctx, void *p, int *refs)
if (p)
{
int drop;
- Memento_dropRef(p);
+ (void)Memento_dropRef(p);
fz_lock(ctx, FZ_LOCK_ALLOC);
if (*refs > 0)
drop = --*refs == 0;
@@ -668,7 +668,7 @@ fz_drop_imp8(fz_context *ctx, void *p, int8_t *refs)
if (p)
{
int drop;
- Memento_dropRef(p);
+ (void)Memento_dropRef(p);
fz_lock(ctx, FZ_LOCK_ALLOC);
if (*refs > 0)
drop = --*refs == 0;
@@ -686,7 +686,7 @@ fz_drop_imp16(fz_context *ctx, void *p, int16_t *refs)
if (p)
{
int drop;
- Memento_dropRef(p);
+ (void)Memento_dropRef(p);
fz_lock(ctx, FZ_LOCK_ALLOC);
if (*refs > 0)
drop = --*refs == 0;