[vala/1270-remove-static-codecontext-access: 41/44] ReturnStatement: avoid static access to Report
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/1270-remove-static-codecontext-access: 41/44] ReturnStatement: avoid static access to Report
- Date: Mon, 3 Jan 2022 23:53:28 +0000 (UTC)
commit 5653dcfc773d30e67d20decb4baaf9e38f64846a
Author: Daniel Espinosa <esodan gmail com>
Date: Sun Jan 2 19:34:04 2022 -0600
ReturnStatement: avoid static access to Report
vala/valareturnstatement.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]