]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GAsync: Do not warn when not using .begin
authorJürg Billeter <j@bitron.ch>
Sun, 13 Sep 2009 19:55:22 +0000 (21:55 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 13 Sep 2009 19:55:22 +0000 (21:55 +0200)
This improves backwards compatibility.

codegen/valaccodemethodcallmodule.vala

index bef722ca3432917f1c2d4b41a614008b3a49eb15..ddde56d21cd184376424fec6f3f31d0edfd5d32d 100644 (file)
@@ -84,8 +84,7 @@ internal class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                                ccall = new CCodeFunctionCall (new CCodeIdentifier (m.get_finish_cname ()));
                                params = m.get_async_end_parameters ();
                        } else if (!expr.is_yield_expression) {
-                               Report.warning (expr.source_reference, "Calling async methods requires use of `yield' or `begin'");
-
+                               // same as .begin, backwards compatible to bindings without async methods
                                ccall = async_call;
                                params = m.get_async_begin_parameters ();
                        } else {