GCC-14 promoted this warning into error by default but code does not
build cleanly and now this warning becomes a hard error.

Signed-off-by: Khem Raj <raj.k...@gmail.com>
---
 recipes-core/gettext/gettext_%.bbappend | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/recipes-core/gettext/gettext_%.bbappend 
b/recipes-core/gettext/gettext_%.bbappend
index 7bb9a4f..5d2fa33 100644
--- a/recipes-core/gettext/gettext_%.bbappend
+++ b/recipes-core/gettext/gettext_%.bbappend
@@ -1,5 +1,14 @@
 EXTRA_OECONF:append:mingw32 = " --enable-static"
 
+# GCC-14 treats this warning as error which results in
+# build failures on gnulib imported code which is dated in
+# gettext
+# ../../../gettext-0.22.5/gettext-tools/gnulib-lib/localtime.c: In function 
'rpl_localtime':
+#../../../gettext-0.22.5/gettext-tools/gnulib-lib/localtime.c:66:24: error: 
initialization of 'char *' from incompatible pointer type 'char **' 
[-Wincompatible-pointer-types]
+#   66 |         for (char *s = env; *s != NULL; s++)
+#      |                        ^~~
+CFLAGS:append:mingw32 = "-Wno-error=incompatible-pointer-types"
+
 FILESEXTRAPATHS:prepend:mingw32 := "${THISDIR}/${BPN}:"
 SRC_URI:append:mingw32 = " \
                "
-- 
2.45.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63236): https://lists.yoctoproject.org/g/yocto/message/63236
Mute This Topic: https://lists.yoctoproject.org/mt/106383345/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to