remove warning about unsupported return types for runtime type checks, we
authorJuerg Billeter <j@bitron.ch>
Sun, 13 Apr 2008 20:28:51 +0000 (20:28 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 13 Apr 2008 20:28:51 +0000 (20:28 +0000)
2008-04-13  Juerg Billeter  <j@bitron.ch>

* 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
gobject/valaccodegeneratormethod.vala

index 9744bc7..1bd8d3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-04-13  Jürg Billeter  <j@bitron.ch>
 
+       * 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  <j@bitron.ch>
+
        * vala/valamethod.vala, vala/valasemanticanalyzer.vala:
          fix method compatibility checks,
          based on patch by Andreas Brauchli, fixes bug 527751
index 016339c..8a1f825 100644 (file)
@@ -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"));
                        }
                }