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 <[email protected]>
---
 .../recipes-connectivity/telepathy/telepathy-glib_0.24.2.bb  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-connectivity/telepathy/telepathy-glib_0.24.2.bb 
b/meta-oe/recipes-connectivity/telepathy/telepathy-glib_0.24.2.bb
index 0c88cbe65f..6bfffd40c1 100644
--- a/meta-oe/recipes-connectivity/telepathy/telepathy-glib_0.24.2.bb
+++ b/meta-oe/recipes-connectivity/telepathy/telepathy-glib_0.24.2.bb
@@ -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)}"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#127933): 
https://lists.openembedded.org/g/openembedded-devel/message/127933
Mute This Topic: https://lists.openembedded.org/mt/120018158/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to