From: Daniel Espinosa Date: Sun, 2 Jan 2022 23:44:52 +0000 (-0600) Subject: Constant: use context when available to avoid report static access X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=406111ade83eac1b865faf95dde18484165a2c9f;p=thirdparty%2Fvala.git Constant: use context when available to avoid report static access --- diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala index 0b6820fea..24ace8e0f 100644 --- a/vala/valaconstant.vala +++ b/vala/valaconstant.vala @@ -183,7 +183,7 @@ public class Vala.Constant : Symbol { } if (!external_package && !hides && get_hidden_member () != null) { - Report.warning (source_reference, "%s hides inherited constant `%s'. Use the `new' keyword if hiding was intentional", get_full_name (), get_hidden_member ().get_full_name ()); + context.report.log_warning (source_reference, "%s hides inherited constant `%s'. Use the `new' keyword if hiding was intentional", get_full_name (), get_hidden_member ().get_full_name ()); } context.analyzer.current_source_file = old_source_file;