Allow trivial optimizations for switch statements of typeid

This commit is contained in:
gingerBill
2021-06-09 23:05:37 +01:00
parent 7b88bed098
commit b0e21bd616
2 changed files with 23 additions and 11 deletions
+2 -2
View File
@@ -1092,7 +1092,7 @@ void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) {
}
error_line("\n");
error_line("\tSuggestion: Was '#partial switch' wanted? This replaces the previous '#complete switch'.\n");
error_line("\tSuggestion: Was '#partial switch' wanted?\n");
}
}
}
@@ -1324,7 +1324,7 @@ void check_type_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) {
}
}
error_line("\n");
error_line("\tSuggestion: Was '#partial switch' wanted? This replaces the previous '#complete switch'.\n");
error_line("\tSuggestion: Was '#partial switch' wanted?\n");
}
}
}