diff mbox series

[meta-oe,123/128] telepathy-glib: relax -Werror=incompatible-pointer-types for GCC 14+

Message ID 20260628162222.4081517-23-khem.raj@oss.qualcomm.com
State New
Headers show
Series None | expand

Commit Message

Khem Raj June 28, 2026, 4:22 p.m. UTC
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>
---
 .../recipes-connectivity/telepathy/telepathy-glib_0.24.2.bb  | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

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)}"