Fix fallthrough warnings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -56,6 +56,7 @@ namespace Porygon::Binder {
|
||||
case ParsedStatementKind::Bad:
|
||||
return new BoundBadStatement();
|
||||
}
|
||||
throw "unreachable";
|
||||
}
|
||||
|
||||
BoundStatement *Binder::BindBlockStatement(const ParsedStatement *statement) {
|
||||
@@ -355,6 +356,7 @@ namespace Porygon::Binder {
|
||||
case ParsedExpressionKind::Bad:
|
||||
return new BoundBadExpression(expression->GetStartPosition(), expression->GetLength());
|
||||
}
|
||||
throw;
|
||||
}
|
||||
|
||||
BoundExpression *Binder::BindVariableExpression(const VariableExpression *expression) {
|
||||
|
||||
Reference in New Issue
Block a user