-Werror=implicit-fallthrough= (GCC 7)

Change-Id: I2e9ab956fc1e59d09b7409333f18230e34b6a9b7
This commit is contained in:
Stephan Bergmann
2017-01-26 14:55:14 +01:00
parent e99364e34b
commit 23bf422723
2 changed files with 3 additions and 1 deletions

View File

@@ -319,7 +319,7 @@ long
} }
continue; continue;
} }
/* flow through */ /* fall through */
/* plain binary */ /* plain binary */
case EQ: case EQ:

View File

@@ -492,6 +492,7 @@ continue2:
case S_STNL: case S_STNL:
error(ERROR, "Unterminated string or char const"); error(ERROR, "Unterminated string or char const");
/* fall through */
case S_NL: case S_NL:
tp->t = ip; tp->t = ip;
tp->type = NL; tp->type = NL;
@@ -516,6 +517,7 @@ continue2:
case S_EOFCOM: case S_EOFCOM:
error(WARNING, "EOF inside comment"); error(WARNING, "EOF inside comment");
--ip; --ip;
/* fall through */
case S_COMMENT: case S_COMMENT:
if (!Cflag) if (!Cflag)
{ {