Commit 68a1062
authored
Fix -Wdefault-const-init-field-unsafe with clang 21 (#21135)
Fixes the following warning:
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;
| ^1 parent b56f068 commit 68a1062
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3465 | 3465 | | |
3466 | 3466 | | |
3467 | 3467 | | |
3468 | | - | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
3469 | 3473 | | |
3470 | 3474 | | |
3471 | 3475 | | |
3472 | | - | |
3473 | | - | |
3474 | 3476 | | |
3475 | 3477 | | |
3476 | 3478 | | |
| |||
0 commit comments