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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user