Internals: Squelch false GCC fallthrough warning (#6369)

This commit is contained in:
Geza Lore 2025-09-04 01:14:11 +01:00 committed by GitHub
parent bd7f6d3c19
commit 5f0eb007b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -1447,6 +1447,8 @@ int V3PreProcImp::getStateToken() {
fileline()->v3error("Expecting include filename. Found: "s + tokenName(tok));
goto next_tok;
}
// GCC 13.3.0 with -O0 throws a false 'this statement may fall through' without this:
VL_UNREACHABLE;
}
case ps_ERRORNAME: {
if (tok == VP_STRING) {