diff mbox series

[meta-networking,119/128] libowfat: relax -Werror=incompatible-pointer-types for GCC 14+

Message ID 20260628162222.4081517-19-khem.raj@oss.qualcomm.com
State New
Headers show
Series None | expand

Commit Message

Khem Raj June 28, 2026, 4:22 p.m. UTC
GCC 14 promotes -Wincompatible-pointer-types to an error by default. The
buffer_init*.c sources pass read()/write() directly where a typeless op
function pointer is expected:

  buffer/buffer_init_read.c:6:18: error: passing argument 2 of 'buffer_init'
  from incompatible pointer type [-Wincompatible-pointer-types]

The existing gcc-15 patch only fixes the BUFFER_INIT macro, not these call
sites. Add -Wno-error=incompatible-pointer-types so the build completes.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-networking/recipes-support/ncp/libowfat_0.34.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/ncp/libowfat_0.34.bb b/meta-networking/recipes-support/ncp/libowfat_0.34.bb
index fa251f55a7..63782e8865 100644
--- a/meta-networking/recipes-support/ncp/libowfat_0.34.bb
+++ b/meta-networking/recipes-support/ncp/libowfat_0.34.bb
@@ -13,6 +13,10 @@  SRC_URI = "http://www.fefe.de/${BPN}/${BP}.tar.xz \
           "
 SRC_URI[sha256sum] = "d4330d373ac9581b397bc24a22ad1f7f5d58a7fe36d9d239fe352ceffc5d304b"
 
+# GCC 14+ promotes -Wincompatible-pointer-types to an error. libowfat 0.34
+# passes read()/write() directly where a typeless op pointer is expected.
+CFLAGS += "-Wno-error=incompatible-pointer-types"
+
 EXTRA_OEMAKE = "\
     DIET= \
     CC='${BUILD_CC} ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}' \