[Bug 272079] net-im/telepathy-glib: fix build with clang 16

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 19 Jun 2023 19:24:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272079

            Bug ID: 272079
           Summary: net-im/telepathy-glib: fix build with clang 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: gnome@FreeBSD.org
             Flags: maintainer-feedback?(gnome@FreeBSD.org)

Clang 16 has a new error about incompatible function types, which shows
up when net-im/telepathy-glib:

  protocol.c:1794:42: error: incompatible function pointer types passing 'void
(GValueArray *)' (aka 'void (struct _GValueArray *)') to parameter of type
'GDestroyNotify' (aka 'void (*)(void *)')
[-Wincompatible-function-pointer-types]
    param_specs = g_ptr_array_new_full (i, tp_value_array_free);
                                           ^~~~~~~~~~~~~~~~~~~
  /usr/local/include/glib-2.0/glib/garray.h:175:27: note: passing argument to
parameter 'element_free_func' here
                                             GDestroyNotify   
element_free_func);
                                                               ^

It looks like telepathy-glib added this tp_value_array_free function to
work around compatibility issues, and later on in the code they cast a
similar instance of tp_value_array_free to GDestroyNotify, so use the
same approach for this error.

-- 
You are receiving this mail because:
You are the assignee for the bug.