Internals: Squelch false GCC fallthrough warning (#6369)

This commit is contained in:
Geza Lore
2025-09-03 20:14:11 -04:00
committed by GitHub
parent bd7f6d3c19
commit 5f0eb007b1
+2
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) {