diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-19 15:34:29 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-19 15:34:29 +0000 |
| commit | 9a2fc6cf4c8b4434ae45170953b77b3239120fea (patch) | |
| tree | a955d0891bea9269d2ff3483127ed100c176bef3 /src/main.cpp | |
| parent | 8ff788f4fff7504b8b6bca1183a9be98b8765cbc (diff) | |
Serialize errors to make them sortable, deterministic, and generally more control
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7951ca2db..0f28e137f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2095,7 +2095,7 @@ gb_internal void print_show_unused(Checker *c) { array_add(&unused, e); } - gb_sort_array(unused.data, unused.count, cmp_entities_for_printing); + array_sort(unused, cmp_entities_for_printing); print_usage_line(0, "Unused Package Declarations"); @@ -2680,6 +2680,7 @@ int main(int arg_count, char const **arg_ptr) { } if (any_errors()) { + print_all_errors(); return 1; } @@ -2691,6 +2692,7 @@ int main(int arg_count, char const **arg_ptr) { check_parsed_files(checker); if (any_errors()) { + print_all_errors(); return 1; } |