Skip to content

Commit

Permalink
Touch variable to avoid -Werror=unused-parameter error, in the right …
Browse files Browse the repository at this point in the history
…place.
  • Loading branch information
Danack committed Jul 1, 2024
1 parent 88d1b40 commit cbcf7bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imagick_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cbcf7bd

Please sign in to comment.