From: Daniel Espinosa Date: Mon, 3 Jan 2022 01:19:10 +0000 (-0600) Subject: Parameter: avoid static access to Report X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f788d583649ab0cae888f8f83e0659d8863d4c4;p=thirdparty%2Fvala.git Parameter: avoid static access to Report --- diff --git a/vala/valaparameter.vala b/vala/valaparameter.vala index 82b761c61..25cdf19ae 100644 --- a/vala/valaparameter.vala +++ b/vala/valaparameter.vala @@ -189,7 +189,7 @@ public class Vala.Parameter : Variable { if (initializer is NullLiteral && !variable_type.nullable && direction != ParameterDirection.OUT) { - Report.warning (source_reference, "`null' incompatible with parameter type `%s'", variable_type.to_string ()); + context.report.log_warning (source_reference, "`null' incompatible with parameter type `%s'", variable_type.to_string ()); } else if (!(initializer is NullLiteral) && direction == ParameterDirection.OUT) { error = true; context.report.log_error (source_reference, "only `null' is allowed as default value for out parameters");