]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Constant: use context when available to avoid report static access
authorDaniel Espinosa <esodan@gmail.com>
Sun, 2 Jan 2022 23:44:52 +0000 (17:44 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:33 +0000 (17:51 -0600)
vala/valaconstant.vala

index 0b6820fea8153658804d0937265eba5afc11d118..24ace8e0fd8f8c6ac7a3a89b9a2520fd860232da 100644 (file)
@@ -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;