From: Daniel Espinosa Date: Mon, 3 Jan 2022 01:34:04 +0000 (-0600) Subject: ReturnStatement: avoid static access to Report X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5653dcfc773d30e67d20decb4baaf9e38f64846a;p=thirdparty%2Fvala.git ReturnStatement: avoid static access to Report --- diff --git a/vala/valareturnstatement.vala b/vala/valareturnstatement.vala index ad17f31cc..089ac2524 100644 --- a/vala/valareturnstatement.vala +++ b/vala/valareturnstatement.vala @@ -140,7 +140,7 @@ public class Vala.ReturnStatement : CodeNode, Statement { if (return_expression is NullLiteral && !context.analyzer.current_return_type.nullable) { - Report.warning (source_reference, "`null' incompatible with return type `%s'", context.analyzer.current_return_type.to_string ()); + context.report.log_warning (source_reference, "`null' incompatible with return type `%s'", context.analyzer.current_return_type.to_string ()); } return !error;