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 *)’}
This commit is contained in:
Aleksander Morgado
2021-09-08 10:14:26 +02:00
parent 03b75c85d0
commit f2901446e0
+1 -1
View File
@@ -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);
}