Skip to contentSkip to conversation

vala: add -Wno-error=incompatible-pointer-types work around

PATCH New Martin Jansa 1 participant 1 message Oct 27, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vala: add -Wno-error=incompatible-pointer-types work around

* to allow building vala-native on hosts with gcc-14
* we could backport:
https://gitlab.gnome.org/GNOME/vala/-/commit/23ec71b1a5c4cead3d1bdac82e184d0a63fa7b79
which is already included in scarthgap, but that's big patch doing almost the same

---
 meta/recipes-devtools/vala/vala.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/vala/vala.inc +4 -0
index 162e99bb03..87d8fedc3f 100644
@@ -39,6 +39,10 @@ EOF
 
 EXTRA_OECONF += " --disable-valadoc"
 
+# work around for vala-native build with gcc-14 instead of backporting
+# https://gitlab.gnome.org/GNOME/vala/-/commit/23ec71b1a5c4cead3d1bdac82e184d0a63fa7b79
+BUILD_CFLAGS += "-Wno-error=incompatible-pointer-types"
+
 # Vapigen wrapper needs to be available system-wide, because it will be used
 # to build vapi files from all other packages with vala support
 do_install:append:class-target() {
Signature · 1 line
2.47.0