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-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..95b00f5 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"
-- 
2.45.1

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

Reply via email to