Skip to content
  • Alberts Muktupāvels's avatar
    fix cast-function-type warnings · 4e9205d6
    Alberts Muktupāvels authored
    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);
    4e9205d6