From 54c3518200c6d05a67298bd73b8f0070e3c40947 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Sun, 13 Apr 2008 20:28:51 +0000 Subject: [PATCH] remove warning about unsupported return types for runtime type checks, we 2008-04-13 Juerg Billeter * gobject/valaccodegeneratormethod.vala: remove warning about unsupported return types for runtime type checks, we intend to use out parameters instead of return values for structs in generated C code in future versions svn path=/trunk/; revision=1218 --- ChangeLog | 7 +++++++ gobject/valaccodegeneratormethod.vala | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9744bc7..1bd8d3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2008-04-13 Jürg Billeter + * gobject/valaccodegeneratormethod.vala: remove warning about + unsupported return types for runtime type checks, we intend to + use out parameters instead of return values for structs in + generated C code in future versions + +2008-04-13 Jürg Billeter + * vala/valamethod.vala, vala/valasemanticanalyzer.vala: fix method compatibility checks, based on patch by Andreas Brauchli, fixes bug 527751 diff --git a/gobject/valaccodegeneratormethod.vala b/gobject/valaccodegeneratormethod.vala index 016339c..8a1f825 100644 --- a/gobject/valaccodegeneratormethod.vala +++ b/gobject/valaccodegeneratormethod.vala @@ -680,7 +680,6 @@ public class Vala.CCodeGenerator { if (cdefault != null) { ccheck.add_argument (cdefault); } else { - Report.warning (method_node.source_reference, "not supported return type for runtime type checks"); return new CCodeExpressionStatement (new CCodeConstant ("0")); } } @@ -703,7 +702,6 @@ public class Vala.CCodeGenerator { if (cdefault != null) { ccheck.add_argument (cdefault); } else { - Report.warning (method_node.source_reference, "not supported return type for runtime type checks"); return new CCodeExpressionStatement (new CCodeConstant ("0")); } } -- 2.7.4