aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-02 23:39:14 +0100
committergingerBill <bill@gingerbill.org>2024-04-02 23:39:14 +0100
commita9bfb3ac2e3a0f1e4c98596685e983aaf1e1f651 (patch)
treece3d1e23b0b7eeb5c1648d7b176ad1516c61dbb6 /src/main.cpp
parent692a47f080f3de24ed05eeed90994112a4d9e0e8 (diff)
Clarity warning and error printing
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 7 insertions, 0 deletions
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);