From 5072d5c776eb53afb2439f43dfa40ccadb68dfb9 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 22 Jan 2026 13:54:53 +0000 Subject: Add warning in code generation stage which might cause a possible code gen issue, when non-constant initialization is large --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 753f58986..499b8a5ff 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4046,6 +4046,14 @@ int main(int arg_count, char const **arg_ptr) { remove_temp_files(gen); } + if (any_errors()) { + print_all_errors(); + return 1; + } + if (any_warnings()) { + print_all_errors(); + } + end_of_code_gen:; if (build_context.export_dependencies_format != DependenciesExportUnspecified) { -- cgit v1.2.3