Skip to content

Commit

Permalink
Fix some more issues found by PVS-Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Dec 12, 2023
1 parent 327cc3d commit d2f70c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Sources/compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,7 @@ void emit_statement(opcodes *code, block *parent, statement *statement) {
emit_op(code, &o);
break;
}
case STATEMENT_IF: {
debug_context context = {0};
error(context, "not implemented");
break;
}
case STATEMENT_IF:
case STATEMENT_BLOCK: {
debug_context context = {0};
error(context, "not implemented");
Expand Down
2 changes: 2 additions & 0 deletions Sources/kong.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ void resolve_types_in_expression(statement *parent, expression *e) {
break;
}
}
break;
}
case EXPRESSION_BOOLEAN: {
e->type.type = bool_id;
Expand Down Expand Up @@ -231,6 +232,7 @@ void resolve_types_in_expression(statement *parent, expression *e) {
resolve_member_type(parent, t, e);
break;
}
case EXPRESSION_INDEX:
case EXPRESSION_CONSTRUCTOR: {
debug_context context = {0};
error(context, "not implemented");
Expand Down

0 comments on commit d2f70c3

Please sign in to comment.