From f2901446e0ef1f82c8ae27edc69d681a2a542957 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 8 Sep 2021 10:14:26 +0200 Subject: [PATCH] iface-modem-voice: avoid warning with -Wincompatible-pointer-types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/mm-iface-modem-voice.c: In function ‘mm_iface_modem_voice_reload_all_calls’: ../src/mm-iface-modem-voice.c:2549:64: warning: passing argument 2 of ‘((MMIfaceModemVoice *)g_type_interface_peek((void *)((GTypeInstance *)self)->g_class, mm_iface_modem_voice_get_type()))->load_call_list’ from incompatible pointer type [-Wincompatible-pointer-types] 2549 | reload_all_calls_ready, | ^~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(MMIfaceModemVoice *, GAsyncResult *, GTask *) {aka void (*)(struct _MMIfaceModemVoice *, struct _GAsyncResult *, struct _GTask *)} ../src/mm-iface-modem-voice.c:2549:64: note: expected ‘GAsyncReadyCallback’ {aka ‘void (*)(struct _GObject *, struct _GAsyncResult *, void *)’} but argument is of type ‘void (*)(MMIfaceModemVoice *, GAsyncResult *, GTask *)’ {aka ‘void (*)(struct _MMIfaceModemVoice *, struct _GAsyncResult *, struct _GTask *)’} --- src/mm-iface-modem-voice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c index 3b918259..4f3b30fc 100644 --- a/src/mm-iface-modem-voice.c +++ b/src/mm-iface-modem-voice.c @@ -2546,7 +2546,7 @@ mm_iface_modem_voice_reload_all_calls (MMIfaceModemVoice *self, task = g_task_new (self, NULL, callback, user_data); MM_IFACE_MODEM_VOICE_GET_INTERFACE (self)->load_call_list (self, - reload_all_calls_ready, + (GAsyncReadyCallback)reload_all_calls_ready, task); }