From a9bfb3ac2e3a0f1e4c98596685e983aaf1e1f651 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 2 Apr 2024 23:39:14 +0100 Subject: Clarity warning and error printing --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 79c3a1670..b8c21fd3b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2694,6 +2694,9 @@ int main(int arg_count, char const **arg_ptr) { print_all_errors(); return 1; } + if (any_warnings()) { + print_all_errors(); + } MAIN_TIME_SECTION("type check"); @@ -2706,6 +2709,10 @@ int main(int arg_count, char const **arg_ptr) { print_all_errors(); return 1; } + if (any_warnings()) { + print_all_errors(); + } + if (build_context.command_kind == Command_strip_semicolon) { return strip_semicolons(parser); -- cgit v1.2.3