sed(1): Suppress implicit-fallthrough.
Apparently some tools are not able to determine if all the cases of a switch are covered. Make use of the attribute for cases like this. Hinted by: DragonFlyBSD GGC8 (but fixed differently) CID: 976552
This commit is contained in:
parent
00b5108bfb
commit
51a8f735f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336143
@ -250,6 +250,8 @@ cu_fgets(char *buf, int n, int *more)
|
|||||||
s = script->s;
|
s = script->s;
|
||||||
state = ST_STRING;
|
state = ST_STRING;
|
||||||
goto again;
|
goto again;
|
||||||
|
default:
|
||||||
|
__unreachable();
|
||||||
}
|
}
|
||||||
case ST_FILE:
|
case ST_FILE:
|
||||||
if ((p = fgets(buf, n, f)) != NULL) {
|
if ((p = fgets(buf, n, f)) != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user