From 9d42708cc71da9799c24379b8a3533b35edde0a3 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 2 May 2018 11:18:34 +0200 Subject: [PATCH] service-client: Fix warning with GLib >= 2.56 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit geoclue/src/gclue-service-client.c: In function ‘gclue_service_client_handle_start’: geoclue/src/gclue-service-client.c:574:22: warning: assignment to ‘GClueServiceClient *’ {aka ‘struct _GClueServiceClient *’} from incompatible pointer type ‘GClueDBusClient *’ {aka ‘struct _GClueDBusClient *’} [-Wincompatible-pointer-types] data->client = g_object_ref (client); ^ See https://bugzilla.gnome.org/show_bug.cgi?id=790697 for the gobject change that triggers this warning. https://bugs.freedesktop.org/show_bug.cgi?id=106236 --- src/gclue-service-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gclue-service-client.c b/src/gclue-service-client.c index aedcc54..695bc32 100644 --- a/src/gclue-service-client.c +++ b/src/gclue-service-client.c @@ -450,7 +450,7 @@ gclue_service_client_handle_start (GClueDBusClient *client, } data = g_slice_new (StartData); - data->client = g_object_ref (client); + data->client = g_object_ref (GCLUE_SERVICE_CLIENT (client)); data->invocation = g_object_ref (invocation); data->desktop_id = g_strdup (desktop_id); -- 2.17.0