From 5bf40e86cb93b9a8d80aa2a9d10a9bc4c8d5e80b Mon Sep 17 00:00:00 2001 From: George Kiagiadakis <george.kiagiadakis@collabora.com> Date: Tue, 14 Apr 2020 15:18:44 +0300 Subject: [PATCH] endpoint: fix compiler warnings --- lib/wp/endpoint.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/wp/endpoint.c b/lib/wp/endpoint.c index b02dc9cc..f0569dde 100644 --- a/lib/wp/endpoint.c +++ b/lib/wp/endpoint.c @@ -780,7 +780,8 @@ on_si_link_exported (WpSessionItem * link, GAsyncResult * res, gpointer data) return; } - g_signal_connect (link, "flags-changed", destroy_deconfigured_link, NULL); + g_signal_connect (link, "flags-changed", + G_CALLBACK (destroy_deconfigured_link), NULL); } static int @@ -789,7 +790,7 @@ impl_create_link (void *object, const struct spa_dict *props) WpImplEndpoint *self = WP_IMPL_ENDPOINT (object); const gchar *self_ep, *self_stream, *peer_ep, *peer_stream; guint32 self_ep_id, self_stream_id, peer_ep_id, peer_stream_id; - WpSiStream *self_si_stream; + WpSiStream *self_si_stream = NULL; g_autoptr (WpSiStream) peer_si_stream = NULL; g_autoptr (WpSession) session = NULL; @@ -921,9 +922,12 @@ impl_create_link (void *object, const struct spa_dict *props) return -ENAVAIL; } - wp_session_item_export (link, session, on_si_link_exported, self); + wp_session_item_export (link, session, + (GAsyncReadyCallback) on_si_link_exported, self); link = NULL; } + + return 0; } static const struct pw_endpoint_methods impl_endpoint = { -- GitLab