diff --git a/interpreters/berry/CMakeLists.txt b/interpreters/berry/CMakeLists.txt index 42a37554b..d4749851b 100644 --- a/interpreters/berry/CMakeLists.txt +++ b/interpreters/berry/CMakeLists.txt @@ -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 diff --git a/interpreters/berry/Makefile b/interpreters/berry/Makefile index 6fd563162..510a5e86a 100644 --- a/interpreters/berry/Makefile +++ b/interpreters/berry/Makefile @@ -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)