From 798f7e554ed2d3777db99bf6ebba85a2ccd9a549 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 29 May 2024 22:10:58 -0700 Subject: curl: 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-support/curl/curl_%.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes-support/curl/curl_%.bbappend b/recipes-support/curl/curl_%.bbappend index a55c126..10c234d 100644 --- a/recipes-support/curl/curl_%.bbappend +++ b/recipes-support/curl/curl_%.bbappend @@ -1,3 +1,14 @@ PACKAGECONFIG:remove:class-nativesdk:mingw32 = "openssl" EXTRA_OECONF:append:class-nativesdk:mingw32 = " --without-ssl" RRECOMMENDS:lib${BPN}:remove:mingw32 = "ca-certificates" + +# Configure tests for ioctlsocket FIONBIO fails with GCC-14 +# because gcc can now find warnings when compiling the test +# and these warnings are treated as errors +# conftest.c: In function 'main': +# conftest.c:137:41: error: passing argument 3 of 'ioctlsocket' from incompatible pointer type [-Wincompatible-pointer-types] +# 137 | if(0 != ioctlsocket(0, FIONBIO, &flags)) +# | ^~~~~~ +# | | +# | int * +CFLAGS:append:mingw32 = " -Wno-error=incompatible-pointer-types" -- cgit v1.2.3-54-g00ecf