mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
e3f7126a8f
commit
7fcaebffb3
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue