telepathy-glib: relax -Werror=incompatible-pointer-types for GCC 14+

GCC 14 promotes -Wincompatible-pointer-types to an error by default. This
release passes a wrongly-typed GDestroyNotify to g_ptr_array_new_full:

  telepathy-glib/protocol.c:1794:42: error: passing argument 2 of
  'g_ptr_array_new_full' from incompatible pointer type
  [-Wincompatible-pointer-types]

Add -Wno-error=incompatible-pointer-types so the build completes.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2026-06-25 06:16:58 +00:00
parent 089472974c
commit a93093b2d4
@@ -11,6 +11,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e413d83db6ee8f2c8e6055719096a48e"
inherit autotools pkgconfig gettext gobject-introspection vala gtk-doc
# GCC 14+ promotes -Wincompatible-pointer-types to an error. This 0.24.2
# release predates the stricter C rules (e.g. g_ptr_array_new_full callback
# casts in protocol.c).
CFLAGS += "-Wno-error=incompatible-pointer-types"
# Respect GI_DATA_ENABLED value when enabling vala-bindings:
# configure: error: GObject-Introspection must be enabled for Vala bindings
EXTRA_OECONF = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-vala-bindings', '--disable-vala-bindings', d)}"