aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
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);