[php-src] PR #21135: Fix -Wdefault-const-init-field-unsafe with clang 21
| From: | arnaud-lb | Date: | Thu, 05 Feb 2026 12:16:22 +0000 |
| Subject: | [php-src] PR #21135: Fix -Wdefault-const-init-field-unsafe with clang 21 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34801@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21135
Author: arnaud-lb
```
Zend/zend_alloc.c:3469:18: error: default initialization of an object of type
'zend_mm_storage' (aka 'struct _zend_mm_storage') with const member leaves the
object uninitialized [-Werror,-Wdefault-const-init-field-unsafe]
3469 | zend_mm_storage tmp_storage, *storage;
| ^
Zend/zend_alloc.h:313:25: note: member 'handlers' declared 'const' here
313 | const zend_mm_handlers handlers;
| ^
```