Skip to content

Commit ffc63bf

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in Readline extension
1 parent 9c2fc70 commit ffc63bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/readline/readline_cli.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,12 +551,14 @@ static char *cli_completion_generator(const char *text, int index) /* {{{ */
551551
if (retval) {
552552
break;
553553
}
554+
fallthrough;
554555
case 2:
555556
case 3:
556557
retval = cli_completion_generator_define(text, textlen, &cli_completion_state, ce ? &ce->constants_table : EG(zend_constants));
557558
if (retval || ce) {
558559
break;
559560
}
561+
fallthrough;
560562
case 4:
561563
case 5:
562564
retval = cli_completion_generator_class(lc_text, textlen, &cli_completion_state);

0 commit comments

Comments
 (0)