cjdns: disable error for calloc-transposed-args for GCC14 support
authorChristian Marangi <[email protected]>
Sun, 16 Nov 2025 19:27:29 +0000 (20:27 +0100)
committerChristian Marangi <[email protected]>
Sun, 16 Nov 2025 19:30:59 +0000 (20:30 +0100)
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 <[email protected]>
cjdns/Makefile

index cd3ccfeb4b13cc0a502ab4dc09be73893d8297d5..c346eeb5270c6c3ef85c417e7227a6925c5a9020 100644 (file)
@@ -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)" \