Skip to content

Commit ab1c848

Browse files
committed
EMPTY_SWITCH_DEFAULT_CASE
1 parent 7edc384 commit ab1c848

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Zend/zend_compile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6998,7 +6998,8 @@ static void zend_compile_pipe(znode *result, zend_ast *ast, uint32_t type)
69986998
callable_ast->child[0], callable_ast->child[1],
69996999
pfa_arg_list_ast);
70007000
break;
7001-
EMPTY_SWITCH_DEFAULT_CASE()
7001+
default:
7002+
ZEND_UNREACHABLE();
70027003
}
70037004
/* Turn $foo |> $expr into ($expr)($foo) */
70047005
} else {

Zend/zend_partial.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ static zend_ast *zp_simple_type_to_ast(uint32_t type)
286286
return zend_ast_create_ex(ZEND_AST_TYPE, IS_ARRAY);
287287
case MAY_BE_STATIC:
288288
return zend_ast_create_ex(ZEND_AST_TYPE, IS_STATIC);
289-
EMPTY_SWITCH_DEFAULT_CASE()
289+
default:
290+
ZEND_UNREACHABLE();
290291
}
291292

292293
zend_ast *ast = zend_ast_create_zval_from_str(name);

0 commit comments

Comments
 (0)