FALLTHROUGH

This commit is contained in:
Jim Monte 2020-04-25 19:47:20 +02:00 committed by Holger Vogt
parent 1d62ae2d97
commit 7f82a4e036
1 changed files with 3 additions and 0 deletions

View File

@ -456,6 +456,8 @@ prompt(void)
s = "-> ";
while (*s) {
/* NOTE: The FALLTHROUGH comment is used to suppress a GCC warning
* when flag -Wimplicit-fallthrough is present */
switch (*s) {
case '!':
fprintf(cp_out, "%d", cp_event);
@ -463,6 +465,7 @@ prompt(void)
case '\\':
if (s[1])
(void) putc((*++s), cp_out);
/* FALLTHROUGH */
default:
(void) putc((*s), cp_out);
}