[vala] GAsync: Do not warn when not using .begin



commit e8e9c98681b39686857d31f31057216dad55c6c5
Author: Jürg Billeter <j bitron ch>
Date:   Sun Sep 13 21:55:22 2009 +0200

    GAsync: Do not warn when not using .begin
    
    This improves backwards compatibility.

 codegen/valaccodemethodcallmodule.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index bef722c..ddde56d 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -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 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]