From f5a646d1db4351b2a42864ef9c217117fdfe0510 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Thu, 15 Mar 2018 21:41:48 +0200 Subject: [PATCH] telepathy: fix compilation error with GCC 8.0 Fedora 28 has moved to GCC 8.0 which adds the warning option -Wcast-function-type to -Wextra. The paremeter to g_object_ref() should be wrapped in G_OBJECT() if it is not of type GObject *. --- src/telepathy/telepathy-search.c | 4 ++-- src/telepathy/telepathy-tls.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/telepathy/telepathy-search.c b/src/telepathy/telepathy-search.c index 99c8c302..b73358e1 100644 --- a/src/telepathy/telepathy-search.c +++ b/src/telepathy/telepathy-search.c @@ -3,7 +3,7 @@ * * pidgin-sipe * - * Copyright (C) 2012-2017 SIPE Project + * Copyright (C) 2012-2018 SIPE Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -263,7 +263,7 @@ static void channel_manager_iface_init(gpointer g_iface, GObject *sipe_telepathy_search_new(TpBaseConnection *connection) { SipeSearchManager *self = g_object_new(SIPE_TYPE_SEARCH_MANAGER, NULL); - self->connection = g_object_ref(connection); + self->connection = g_object_ref(G_OBJECT(connection)); return(G_OBJECT(self)); } diff --git a/src/telepathy/telepathy-tls.c b/src/telepathy/telepathy-tls.c index ef8fa515..26710bd0 100644 --- a/src/telepathy/telepathy-tls.c +++ b/src/telepathy/telepathy-tls.c @@ -3,7 +3,7 @@ * * pidgin-sipe * - * Copyright (C) 2013-2015 SIPE Project + * Copyright (C) 2013-2018 SIPE Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -269,7 +269,7 @@ static void channel_manager_iface_init(gpointer g_iface, SipeTLSManager *sipe_telepathy_tls_new(TpBaseConnection *connection) { SipeTLSManager *self = g_object_new(SIPE_TYPE_TLS_MANAGER, NULL); - self->connection = g_object_ref(connection); + self->connection = g_object_ref(G_OBJECT(connection)); return(self); } -- 2.11.4.GIT