From 5af11981f3ec291baa37b05d7c57308db907f718 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 newer versions of GLib 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); ^ 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 50596d9..82304c3 100644 --- a/src/gclue-service-client.c +++ b/src/gclue-service-client.c @@ -470,7 +470,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