This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new aaa835340 mcuboot: Ignore mcuboot compile warnings
aaa835340 is described below

commit aaa835340ad51c26c2a1a5969e5b3f971c013a5d
Author: yinshengkai <[email protected]>
AuthorDate: Tue May 14 16:32:05 2024 +0800

    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 <[email protected]>
---
 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 \

Reply via email to