From 7a7210cfa1c337dd97bb71e47e9cb7dd77cb6472 Mon Sep 17 00:00:00 2001 From: gitlost Date: Mon, 8 Mar 2021 13:14:38 +0000 Subject: [PATCH] testcommon.c: Suppress unused args warning in testUtilCmpPngs if NO_PNG --- backend/tests/testcommon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/tests/testcommon.c b/backend/tests/testcommon.c index 3f334a04..d3c174bf 100644 --- a/backend/tests/testcommon.c +++ b/backend/tests/testcommon.c @@ -1208,7 +1208,9 @@ int testUtilExists(char *filename) { int testUtilCmpPngs(char *png1, char *png2) { int ret = -1; -#ifndef NO_PNG +#ifdef NO_PNG + (void)png1; (void)png2; +#else FILE *fp1; FILE *fp2; png_structp png_ptr1, png_ptr2;