From: Daniel Espinosa Date: Sun, 2 Jan 2022 23:49:41 +0000 (-0600) Subject: Constructor: use context when available to avoid report static access X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=999c8c5a8ac1ddb2a2bc2107197aa7ffa91ec5cc;p=thirdparty%2Fvala.git Constructor: use context when available to avoid report static access --- 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()); } } }