[vala] D-Bus: Fix C warning in GDBus servers
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix C warning in GDBus servers
- Date: Wed, 22 Dec 2010 08:06:45 +0000 (UTC)
commit 157c3dc629c88e58d4d1c57799736da09fb6d973
Author: Jürg Billeter <j bitron ch>
Date: Wed Dec 22 08:28:29 2010 +0100
D-Bus: Fix C warning in GDBus servers
codegen/valagdbusservermodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala
index f14394f..0e1acea 100644
--- a/codegen/valagdbusservermodule.vala
+++ b/codegen/valagdbusservermodule.vala
@@ -1255,7 +1255,7 @@ public class Vala.GDBusServerModule : GDBusClientModule {
cregister.add_argument (new CCodeIdentifier ("connection"));
cregister.add_argument (new CCodeIdentifier ("path"));
- cregister.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, get_interface_info (sym)));
+ cregister.add_argument (new CCodeCastExpression (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, get_interface_info (sym)), "GDBusInterfaceInfo *"));
cregister.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, get_interface_vtable (sym)));
cregister.add_argument (new CCodeIdentifier ("data"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]