Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2023 19:24:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 272079] net-im/telepathy-glib: fix build with clang 16
Message-ID:  <bug-272079-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272079

            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 'v=
oid
(GValueArray *)' (aka 'void (struct _GValueArray *)') to parameter of type
'GDestroyNotify' (aka 'void (*)(void *)')
[-Wincompatible-function-pointer-types]
    param_specs =3D 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=20=20=20
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272079-7788>