Modify how build settings are handled

This commit is contained in:
gingerBill
2018-06-15 21:38:22 +01:00
parent 13572aeef0
commit b92a8c513e
5 changed files with 127 additions and 79 deletions

View File

@@ -956,10 +956,6 @@ void check_type_switch_stmt(CheckerContext *ctx, AstNode *node, u32 mod_flags) {
if (!tag_type_found) {
gbString type_str = type_to_string(y.type);
error(y.expr, "Unknown variant type, got '%s'", type_str);
for_array(j, bt->Union.variants) {
Type *vt = base_type(bt->Union.variants[j]);
gb_printf_err("\t%s\n", type_to_string(vt));
}
gb_string_free(type_str);
continue;
}