maintainer-feedback requested: [Bug 272079] net-im/telepathy-glib: fix build with clang 16
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 272079] net-im/telepathy-glib: fix build with clang 16"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Jun 2023 19:24:49 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gnome (Nobody) <gnome@FreeBSD.org> for maintainer-feedback: Bug 272079: net-im/telepathy-glib: fix build with clang 16 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272079 --- Description --- 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.