mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 17:04:33 +04:00
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 <ansuelsmth@gmail.com>
This commit is contained in:
@@ -81,7 +81,7 @@ define Build/Compile
|
|||||||
CC="$(TARGET_CC_NOCACHE)" \
|
CC="$(TARGET_CC_NOCACHE)" \
|
||||||
AR="$(TARGET_AR)" \
|
AR="$(TARGET_AR)" \
|
||||||
RANLIB="$(TARGET_RANLIB)" \
|
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)" \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
SYSTEM="linux" \
|
SYSTEM="linux" \
|
||||||
TARGET_ARCH="$(CONFIG_ARCH)" \
|
TARGET_ARCH="$(CONFIG_ARCH)" \
|
||||||
|
|||||||
Reference in New Issue
Block a user