[jsonrpc-glib] client: squash some warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jsonrpc-glib] client: squash some warnings
- Date: Tue, 6 Jun 2017 11:03:06 +0000 (UTC)
commit f1ff931137df56c45fbf2e523cb4f202a8172bb1
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 6 04:02:39 2017 -0700
client: squash some warnings
src/jsonrpc-client.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/jsonrpc-client.c b/src/jsonrpc-client.c
index d6f2763..c9d5af7 100644
--- a/src/jsonrpc-client.c
+++ b/src/jsonrpc-client.c
@@ -540,7 +540,7 @@ jsonrpc_client_call_read_cb (GObject *object,
JsonrpcClientPrivate *priv = jsonrpc_client_get_instance_private (self);
g_autoptr(GVariant) message = NULL;
g_autoptr(GError) error = NULL;
- g_auto(GVariantDict) dict = { 0 };
+ g_auto(GVariantDict) dict = {{{ 0 }}};
g_assert (JSONRPC_IS_INPUT_STREAM (stream));
g_assert (JSONRPC_IS_CLIENT (self));
@@ -689,7 +689,6 @@ jsonrpc_client_call_read_cb (GObject *object,
if (g_variant_dict_contains (&dict, "id") &&
g_variant_dict_contains (&dict, "error"))
{
- g_auto(GVariantDict) error_dict = { 0 };
g_autoptr(GVariant) error_variant = NULL;
g_autofree gchar *errstr = NULL;
gint64 id = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]