From 999c8c5a8ac1ddb2a2bc2107197aa7ffa91ec5cc Mon Sep 17 00:00:00 2001 From: Daniel Espinosa Date: Sun, 2 Jan 2022 17:49:41 -0600 Subject: [PATCH] Constructor: use context when available to avoid report static access --- vala/valaconstructor.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vala/valaconstructor.vala b/vala/valaconstructor.vala index 8c916f8a5..fbfc2f1d6 100644 --- a/vala/valaconstructor.vala +++ b/vala/valaconstructor.vala @@ -83,7 +83,7 @@ public class Vala.Constructor : Subroutine { body.get_error_types (body_errors); foreach (DataType body_error_type in body_errors) { if (!((ErrorType) body_error_type).dynamic_error) { - Report.warning (body_error_type.source_reference, "unhandled error `%s'", body_error_type.to_string()); + context.report.log_warning (body_error_type.source_reference, "unhandled error `%s'", body_error_type.to_string()); } } } -- 2.47.2