From e1a29a656c444c238b92147e6bc37382254cd12f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 29 May 2024 22:10:59 -0700 Subject: gettext: Disable incompatible-pointer-types warning as error on mingw GCC-14 promoted this warning into error by default but code does not build cleanly and now this warning becomes a hard error. RP: Fix whitespace Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- 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..96f1dcf 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 = " \ " -- cgit v1.2.3-54-g00ecf