[vala] D-Bus: Emit cast to avoid C warning for signal handling in clients



commit b8c44724bee309e06f2be353fa57c5dd08e8e503
Author: Jürg Billeter <j bitron ch>
Date:   Wed Mar 23 22:32:30 2011 +0100

    D-Bus: Emit cast to avoid C warning for signal handling in clients

 codegen/valagdbusclientmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagdbusclientmodule.vala b/codegen/valagdbusclientmodule.vala
index ed71cea..d33b320 100644
--- a/codegen/valagdbusclientmodule.vala
+++ b/codegen/valagdbusclientmodule.vala
@@ -445,7 +445,7 @@ public class Vala.GDBusClientModule : GDBusModule {
 			var callblock = new CCodeBlock ();
 
 			var ccall = new CCodeFunctionCall (new CCodeIdentifier (generate_dbus_signal_handler (sig, sym)));
-			ccall.add_argument (new CCodeIdentifier ("proxy"));
+			ccall.add_argument (new CCodeCastExpression (new CCodeIdentifier ("proxy"), sym.get_cname () + "*"));
 			ccall.add_argument (new CCodeIdentifier ("parameters"));
 
 			callblock.add_statement (new CCodeExpressionStatement (ccall));



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