Skip to content

Commit 1a7aca6

Browse files
committed
Fix confusion by GCC in zend_inference
1 parent 8311c10 commit 1a7aca6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/Optimizer/zend_inference.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4634,6 +4634,9 @@ ZEND_API int zend_may_throw_ex(const zend_op *opline, const zend_ssa_op *ssa_op,
46344634
return 0;
46354635
EMPTY_SWITCH_DEFAULT_CASE()
46364636
}
4637+
/* GCC is getting confused here for the Wimplicit-fallthrough warning with
4638+
* EMPTY_SWITCH_DEFAULT_CASE() macro */
4639+
return 0;
46374640
case ZEND_ARRAY_KEY_EXISTS:
46384641
if ((t2 & MAY_BE_ANY) != MAY_BE_ARRAY) {
46394642
return 1;

0 commit comments

Comments
 (0)