Fix [-Wunused-but-set-variable] 124/head
authorRemi Collet <remi@remirepo.net>
Fri, 25 Feb 2022 13:49:16 +0000 (14:49 +0100)
committerRemi Collet <remi@php.net>
Fri, 25 Feb 2022 13:49:16 +0000 (14:49 +0100)
src/php_http_message.c

index b82ec0e79bfc936ddff75163d4419aaf2cdee58c..cd01757b4f83d5261014b10dfa4e7d049231b84b 100644 (file)
@@ -1780,6 +1780,7 @@ static PHP_METHOD(HttpMessage, __serialize)
 
        ZEND_HASH_FOREACH_KEY_PTR(&obj->zo.ce->properties_info, num_index, str_index, pi)
        {
+               (void)num_index;
                zval *val;
                if (str_index && (val = zend_hash_find_ind(props, pi->name))) {
                        Z_TRY_ADDREF_P(val);