Remove -strict-style-init-only

This commit is contained in:
gingerBill
2023-08-01 11:14:52 +01:00
parent 69e1f42aed
commit 2f094134a3
3 changed files with 1 additions and 21 deletions

View File

@@ -1602,8 +1602,6 @@ gb_internal void assign_removal_flag_to_semicolon(AstFile *f) {
if (build_context.strict_style || (ast_file_vet_flags(f) & VetFlag_Semicolon)) {
syntax_error(*prev_token, "Found unneeded semicolon");
} else if (build_context.strict_style_init_only && f->pkg->kind == Package_Init) {
syntax_error(*prev_token, "Found unneeded semicolon");
}
prev_token->flags |= TokenFlag_Remove;
}