build error with gcc14 (-Werror=incompatible-pointer-types)
Upcoming gcc14 defaults to -Werror=incompatible-pointer-types
and current source fails to build with the following error:
protocol.c: In function ‘_tp_protocol_parse_manager_file’:
protocol.c:1794:42: error: passing argument 2 of ‘g_ptr_array_new_full’ from incompatible pointer type [-Werror=incompatible-pointer-types]
1794 | param_specs = g_ptr_array_new_full (i, tp_value_array_free);
| ^~~~~~~~~~~~~~~~~~~
| |
| void (*)(GValueArray *) {aka void (*)(struct _GValueArray *)}
In file included from /usr/include/glib-2.0/glib.h:33,
from /usr/include/glib-2.0/gobject/gbinding.h:30,
from /usr/include/glib-2.0/glib-object.h:24,
from ../telepathy-glib/protocol.h:27,
from protocol.c:37:
/usr/include/glib-2.0/glib/garray.h:175:62: note: expected ‘GDestroyNotify’ {aka ‘void (*)(void *)’} but argument is of type ‘void (*)(GValueArray *)’ {aka ‘void (*)(struct _GValueArray *)’}
175 | GDestroyNotify element_free_func);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~