Skip to content

Commit 1075182

Browse files
committed
Fix "fptr may be used uninitialized" warning
Older versions of GCC seem to get confused about the call to zend_ast_call_get_args(ast), and assume it may mutate ast, even though it is local.
1 parent dc03108 commit 1075182

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_ast.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,7 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
12381238

12391239
break;
12401240
}
1241+
EMPTY_SWITCH_DEFAULT_CASE()
12411242
}
12421243

12431244
zend_create_fake_closure(result, fptr, fptr->common.scope, called_scope, NULL);

0 commit comments

Comments
 (0)