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:
Pedro F. Giffuni 2018-07-09 20:27:31 +00:00
parent 00b5108bfb
commit 51a8f735f8

View File

@ -250,6 +250,8 @@ cu_fgets(char *buf, int n, int *more)
s = script->s;
state = ST_STRING;
goto again;
default:
__unreachable();
}
case ST_FILE:
if ((p = fgets(buf, n, f)) != NULL) {