Skip to contentSkip to conversation

enchant2: Disable incompatible-pointer-types warning as error

PATCH In review Khem Raj 2 participants 2 messages May 9, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 enchant2: Disable incompatible-pointer-types warning as error

This fixes build with GCC-14

---
 meta/recipes-support/enchant/enchant2_2.7.2.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-support/enchant/enchant2_2.7.2.bb +4 -0
index 08998dd48fe..7e175852556 100644
@@ -27,3 +27,7 @@ FILES:${PN} += " \
     ${libdir}/enchant-2 \
 "
 FILES:${PN}-staticdev += "${libdir}/enchant-2/*.a"
+
+#api.vala:43:18: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'const gchar * const*' {aka 'const char * const*'} [-Wincompatible-pointer-types] 
+
+CFLAGS += "-Wno-error=incompatible-pointer-types"
Signature · 1 line
2.45.0
#1 lore raw

meta/recipes-support/enchant/enchant2_2.7.2.bb FILES:${PN} += " \

Quoted 3 lines · Khem Raj via lists.openembedded.org
meta/recipes-support/enchant/enchant2_2.7.2.bb +3 -0
+#api.vala:43:18: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'const gchar * const*' {aka 'const char * const*'} [-Wincompatible-pointer-types] 
+
+CFLAGS += "-Wno-error=incompatible-pointer-types”

I poked upstream about this: this is basically a vala bug and if we upgrade vala or enchant then it will be resolved:

https://github.com/AbiWord/enchant/issues/379#issuecomment-2102590822

Ross