]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
ReturnStatement: avoid static access to Report
authorDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 01:34:04 +0000 (19:34 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:34 +0000 (17:51 -0600)
vala/valareturnstatement.vala

index ad17f31cc795ebc5857f360d5bd770380da21172..089ac25248cec4f33fef4bc912e08e03cc30f7e9 100644 (file)
@@ -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;