From aaa835340ad51c26c2a1a5969e5b3f971c013a5d Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Tue, 14 May 2024 16:32:05 +0800 Subject: [PATCH] mcuboot: Ignore mcuboot compile warnings Will cause compilation warning if NDEBUG is defined We can't modify the code of the external library, so let's ignore it Signed-off-by: yinshengkai --- boot/mcuboot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/mcuboot/Makefile b/boot/mcuboot/Makefile index 8232a1250..64157bf09 100644 --- a/boot/mcuboot/Makefile +++ b/boot/mcuboot/Makefile @@ -39,7 +39,7 @@ PRIORITY += SCHED_PRIORITY_DEFAULT STACKSIZE += $(CONFIG_DEFAULT_TASK_STACKSIZE) endif -CFLAGS += -Wno-undef +CFLAGS += -Wno-undef -Wno-unused-but-set-variable CSRCS := $(MCUBOOT_UNPACK)/boot/bootutil/src/boot_record.c \ $(MCUBOOT_UNPACK)/boot/bootutil/src/bootutil_misc.c \