mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
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:
@@ -11,6 +11,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e413d83db6ee8f2c8e6055719096a48e"
|
|||||||
|
|
||||||
inherit autotools pkgconfig gettext gobject-introspection vala gtk-doc
|
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:
|
# Respect GI_DATA_ENABLED value when enabling vala-bindings:
|
||||||
# configure: error: GObject-Introspection must be enabled for 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)}"
|
EXTRA_OECONF = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-vala-bindings', '--disable-vala-bindings', d)}"
|
||||||
|
|||||||
Reference in New Issue
Block a user