From cbcf7bdf46d0f820d46d20028c3f61343c757b28 Mon Sep 17 00:00:00 2001 From: Danack Date: Mon, 1 Jul 2024 20:55:32 +0100 Subject: [PATCH] Touch variable to avoid -Werror=unused-parameter error, in the right place. --- imagick_class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imagick_class.c b/imagick_class.c index 3045ae6f..ef1a952f 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -13067,7 +13067,6 @@ PHP_METHOD(Imagick, getImageMask) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &pixelmask_type) == FAILURE) { RETURN_THROWS(); } - (void)return_value; // fix -Werror=unused-parameter intern = Z_IMAGICK_P(getThis()); IMAGICK_NOT_EMPTY(intern); @@ -13100,9 +13099,10 @@ PHP_METHOD(Imagick, setImageMask) zval *objvar; im_long pixelmask_type; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &objvar, php_imagick_sc_entry, &pixelmask_type) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &objvar, php_imagick_sc_entry, &pixelmask_type) == FAILURE) { RETURN_THROWS(); - } + } + (void)return_value; // fix -Werror=unused-parameter intern = Z_IMAGICK_P(getThis()); IMAGICK_NOT_EMPTY(intern);