interpreters/berry: Fix Wshadow build errors

The pinned Berry source emits -Wshadow diagnostics in a couple of files. NuttX CI passes -Werror, so sim:berry fails when those third-party warnings are promoted to errors.\n\nAdd -Wno-shadow to Berry-specific compiler flags in both Make and CMake paths, keeping the local source patch limited to the NuttX port changes.

Signed-off-by: Frederick Blais <fred_blais5@hotmail.com>
This commit is contained in:
Frederick Blais 2026-07-01 10:20:54 -04:00 committed by Alan C. Assis
parent e3f7126a8f
commit e61f46536e
2 changed files with 2 additions and 1 deletions

View file

@ -54,7 +54,7 @@ if(CONFIG_INTERPRETERS_BERRY)
set(BERRY_CONFIG ${BERRY_CONFIG_DIR}/berry_conf.h)
set(BERRY_GENERATE ${BERRY_DIR}/generate)
set(BERRY_GEN_STAMP ${BERRY_GENERATE}/.generated)
set(BERRY_FLAGS -Wno-unused-but-set-variable)
set(BERRY_FLAGS -Wno-unused-but-set-variable -Wno-shadow)
set(BERRY_INCDIR ${BERRY_CONFIG_DIR} ${BERRY_DIR}/src ${BERRY_DIR}/default)
set(BERRY_CSRCS

View file

@ -56,6 +56,7 @@ CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)interpreters$(DELIM)berry$(DELIM)incl
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)interpreters$(DELIM)berry$(DELIM)$(BERRY_UNPACK)$(DELIM)src
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)interpreters$(DELIM)berry$(DELIM)$(BERRY_UNPACK)$(DELIM)default
CFLAGS += -Wno-unused-but-set-variable
CFLAGS += -Wno-shadow
PROGNAME = $(CONFIG_INTERPRETERS_BERRY_PROGNAME)
PRIORITY = $(CONFIG_INTERPRETERS_BERRY_PRIORITY)