diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-05-29 22:10:59 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-30 08:12:34 +0100 |
commit | e1a29a656c444c238b92147e6bc37382254cd12f (patch) | |
tree | 461c208f1157ea544ab7ecc87eb6c587ad3e8f4f | |
parent | 798f7e554ed2d3777db99bf6ebba85a2ccd9a549 (diff) | |
download | meta-mingw-e1a29a656c444c238b92147e6bc37382254cd12f.tar.gz |
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 <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | recipes-core/gettext/gettext_%.bbappend | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ | |||
1 | EXTRA_OECONF:append:mingw32 = " --enable-static" | 1 | EXTRA_OECONF:append:mingw32 = " --enable-static" |
2 | 2 | ||
3 | # GCC-14 treats this warning as error which results in | ||
4 | # build failures on gnulib imported code which is dated in | ||
5 | # gettext | ||
6 | # ../../../gettext-0.22.5/gettext-tools/gnulib-lib/localtime.c: In function 'rpl_localtime': | ||
7 | #../../../gettext-0.22.5/gettext-tools/gnulib-lib/localtime.c:66:24: error: initialization of 'char *' from incompatible pointer type 'char **' [-Wincompatible-pointer-types] | ||
8 | # 66 | for (char *s = env; *s != NULL; s++) | ||
9 | # | ^~~ | ||
10 | CFLAGS:append:mingw32 = " -Wno-error=incompatible-pointer-types" | ||
11 | |||
3 | FILESEXTRAPATHS:prepend:mingw32 := "${THISDIR}/${BPN}:" | 12 | FILESEXTRAPATHS:prepend:mingw32 := "${THISDIR}/${BPN}:" |
4 | SRC_URI:append:mingw32 = " \ | 13 | SRC_URI:append:mingw32 = " \ |
5 | " | 14 | " |