summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-09-08 10:14:26 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-09-08 10:14:26 +0200
commitf2901446e0ef1f82c8ae27edc69d681a2a542957 (patch)
treee5a80d54e6d7324c47fc58a89cdb7758206b354b
parent03b75c85d0a4abe8c1595d9b23d3ae4cb320e2d8 (diff)
downloadModemManager-f2901446e0ef1f82c8ae27edc69d681a2a542957.tar.gz
iface-modem-voice: avoid warning with -Wincompatible-pointer-types
../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 *)’}
-rw-r--r--src/mm-iface-modem-voice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c
index 3b918259e..4f3b30fc6 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);
}