Commit f199de9
committed
Zend: silence -Warray-bounds false positive in zend_vm_init_call_frame
ZEND_CLOSURE_OBJECT() steps back from the func pointer to the enclosing
zend_closure; under -O2 GCC reads that as an out-of-bounds access of
func and -Werror=array-bounds fails the build. The access is valid
(func is embedded in the closure), so guard it with a localized GCC
diagnostic pragma. Needed for --enable-werror release builds.1 parent 1692bfd commit f199de9
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
348 | 354 | | |
349 | 355 | | |
350 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
351 | 360 | | |
352 | 361 | | |
353 | 362 | | |
| |||
0 commit comments