From 0bf1ec3c3d9459ce8dc6fa7e1b6084518a0b5a55 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Sun, 16 Nov 2025 20:27:29 +0100 Subject: [PATCH] cjdns: disable error for calloc-transposed-args for GCC14 support GCC14 introduced -Wcalloc-transposed-args that check calloc pattern and warn if the args are somehow swapped. The custom allocator in cjdns have the args swapped so the GCC pattern matching reporting a problem is actually a false positive. Disable -Wcalloc-transposed-args warning to fix compilation error as -Werror is enabled. Signed-off-by: Christian Marangi --- cjdns/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cjdns/Makefile b/cjdns/Makefile index cd3ccfe..c346eeb 100644 --- a/cjdns/Makefile +++ b/cjdns/Makefile @@ -81,7 +81,7 @@ define Build/Compile CC="$(TARGET_CC_NOCACHE)" \ AR="$(TARGET_AR)" \ RANLIB="$(TARGET_RANLIB)" \ - CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -Wno-error=array-bounds -Wno-error=stringop-overflow -Wno-error=stringop-overread" \ + CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -Wno-error=array-bounds -Wno-error=stringop-overflow -Wno-error=stringop-overread -Wno-error=calloc-transposed-args" \ LDFLAGS="$(TARGET_LDFLAGS)" \ SYSTEM="linux" \ TARGET_ARCH="$(CONFIG_ARCH)" \ -- 2.30.2