mirror of
https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
synced 2024-11-21 16:30:41 -05:00
fix cast-function-type warnings
gvc-mixer-card.c: In function ‘gvc_mixer_card_finalize’: gvc-mixer-card.c:571:53: warning: cast between incompatible function types from ‘void (*)(GvcMixerCardProfile *)’ {aka ‘void (*)(struct <anonymous> *)’} to ‘void (*)(void *, void *)’ [-Wcast-function-type] g_list_foreach (mixer_card->priv->profiles, (GFunc) free_profile, NULL); gvc-mixer-stream.c: In function ‘gvc_mixer_stream_finalize’: gvc-mixer-stream.c:1044:52: warning: cast between incompatible function types from ‘void (*)(GvcMixerStreamPort *)’ {aka ‘void (*)(struct <anonymous> *)’} to ‘void (*)(void *, void *)’ [-Wcast-function-type] g_list_foreach (mixer_stream->priv->ports, (GFunc) free_port, NULL);
This commit is contained in:
parent
13a4a9a5c2
commit
4e9205d6f3
@ -564,8 +564,7 @@ gvc_mixer_card_finalize (GObject *object)
|
|||||||
g_free (mixer_card->priv->human_profile);
|
g_free (mixer_card->priv->human_profile);
|
||||||
mixer_card->priv->human_profile = NULL;
|
mixer_card->priv->human_profile = NULL;
|
||||||
|
|
||||||
g_list_foreach (mixer_card->priv->profiles, (GFunc) free_profile, NULL);
|
g_list_free_full (mixer_card->priv->profiles, (GDestroyNotify) free_profile);
|
||||||
g_list_free (mixer_card->priv->profiles);
|
|
||||||
mixer_card->priv->profiles = NULL;
|
mixer_card->priv->profiles = NULL;
|
||||||
|
|
||||||
g_list_free_full (mixer_card->priv->ports, (GDestroyNotify) free_port);
|
g_list_free_full (mixer_card->priv->ports, (GDestroyNotify) free_port);
|
||||||
|
@ -1038,8 +1038,7 @@ gvc_mixer_stream_finalize (GObject *object)
|
|||||||
g_free (mixer_stream->priv->human_port);
|
g_free (mixer_stream->priv->human_port);
|
||||||
mixer_stream->priv->human_port = NULL;
|
mixer_stream->priv->human_port = NULL;
|
||||||
|
|
||||||
g_list_foreach (mixer_stream->priv->ports, (GFunc) free_port, NULL);
|
g_list_free_full (mixer_stream->priv->ports, (GDestroyNotify) free_port);
|
||||||
g_list_free (mixer_stream->priv->ports);
|
|
||||||
mixer_stream->priv->ports = NULL;
|
mixer_stream->priv->ports = NULL;
|
||||||
|
|
||||||
if (mixer_stream->priv->change_volume_op) {
|
if (mixer_stream->priv->change_volume_op) {
|
||||||
|
Loading…
Reference in New Issue
Block a user