Add FZ_UNUSED to fz_keep_page_locked definition.
authorRobin Watts <[email protected]>
Wed, 7 Jul 2021 23:12:53 +0000 (00:12 +0100)
committerRobin Watts <[email protected]>
Fri, 9 Jul 2021 14:33:45 +0000 (15:33 +0100)
Avoids warning. Thanks to malc for the report and patch.

include/mupdf/fitz/context.h

index 876cb2a1aa4d4f558580c8cc47a090ec49739b02..b12767d33c8cd5c63620f220e2e679c56f8d27c2 100644 (file)
@@ -630,7 +630,7 @@ fz_keep_imp(fz_context *ctx, void *p, int *refs)
 }
 
 static inline void *
-fz_keep_imp_locked(fz_context *ctx, void *p, int *refs)
+fz_keep_imp_locked(fz_context *ctx FZ_UNUSED, void *p, int *refs)
 {
        if (p)
        {