[vala] D-Bus: Fix C warnings in GDBus servers
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix C warnings in GDBus servers
- Date: Tue, 21 Dec 2010 21:35:40 +0000 (UTC)
commit 4fadac9dba56ea78b74c769f9c6362b97740a553
Author: Jürg Billeter <j bitron ch>
Date: Tue Dec 21 22:19:14 2010 +0100
D-Bus: Fix C warnings in GDBus servers
codegen/valagdbusservermodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala
index af54e84..f14394f 100644
--- a/codegen/valagdbusservermodule.vala
+++ b/codegen/valagdbusservermodule.vala
@@ -91,9 +91,9 @@ public class Vala.GDBusServerModule : GDBusClientModule {
ccode.add_declaration ("GError*", new CCodeVariableDeclarator ("error", new CCodeConstant ("NULL")));
}
- ccode.add_declaration ("GVariantIter", new CCodeVariableDeclarator ("_arguments_iter"));
-
if (!ready) {
+ ccode.add_declaration ("GVariantIter", new CCodeVariableDeclarator ("_arguments_iter"));
+
var iter_init = new CCodeFunctionCall (new CCodeIdentifier ("g_variant_iter_init"));
iter_init.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeIdentifier ("_arguments_iter")));
iter_init.add_argument (new CCodeIdentifier ("parameters"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]