Skip to content

Commit

Permalink
Touch variable to avoid -Werror=unused-parameter errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danack committed Jul 1, 2024
1 parent bede781 commit 3c7efab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imagick_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -8039,6 +8039,7 @@ PHP_METHOD(Imagick, resetIterator)
if (zend_parse_parameters_none() == FAILURE) {
RETURN_THROWS();
}
(void)return_value; // fix -Werror=unused-parameter

/* No magick is going to happen */
if (intern->magick_wand == NULL) {
Expand Down Expand Up @@ -12809,6 +12810,7 @@ PHP_METHOD(Imagick, setAntialias)
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &antialias) == FAILURE) {
RETURN_THROWS();
}
(void)return_value; // fix -Werror=unused-parameter

intern = Z_IMAGICK_P(getThis());
status = MagickSetAntialias(intern->magick_wand, antialias);
Expand Down Expand Up @@ -12885,6 +12887,7 @@ PHP_METHOD(Imagick, optimizeImageTransparency)
if (zend_parse_parameters_none() == FAILURE) {
RETURN_THROWS();
}
(void)return_value; // fix -Werror=unused-parameter

intern = Z_IMAGICK_P(getThis());
IMAGICK_NOT_EMPTY(intern);
Expand Down Expand Up @@ -12913,6 +12916,7 @@ PHP_METHOD(Imagick, autoGammaImage)
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &channel) == FAILURE) {
RETURN_THROWS();
}
(void)return_value; // fix -Werror=unused-parameter

intern = Z_IMAGICK_P(getThis());
IMAGICK_NOT_EMPTY(intern);
Expand Down Expand Up @@ -12940,6 +12944,7 @@ PHP_METHOD(Imagick, autoOrient)
if (zend_parse_parameters_none() == 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 3c7efab

Please sign in to comment.