variable shadowing should be avoided #5676 (#5680)

lwip needs ALLOW_SHADOW
This commit is contained in:
rusefillc 2023-11-01 23:24:40 -04:00 committed by GitHub
parent 1d469cf250
commit 497342f0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 1 deletions

View File

@ -13,6 +13,7 @@ DDEFS += -DHW_ATLAS=1
# Atlas needs networking library # Atlas needs networking library
LWIP = yes LWIP = yes
ALLOW_SHADOW = yes
DDEFS += -DEFI_ETHERNET=TRUE DDEFS += -DEFI_ETHERNET=TRUE
DDEFS += -DSHORT_BOARD_NAME=atlas -DSTATIC_BOARD_ID=STATIC_BOARD_ID_ATLAS DDEFS += -DSHORT_BOARD_NAME=atlas -DSTATIC_BOARD_ID=STATIC_BOARD_ID_ATLAS

View File

@ -4,6 +4,7 @@ DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::B14
# Enable ethernet # Enable ethernet
LWIP = yes LWIP = yes
ALLOW_SHADOW = yes
DDEFS += -DEFI_ETHERNET=TRUE DDEFS += -DEFI_ETHERNET=TRUE
# This is an F429! # This is an F429!

View File

@ -10,6 +10,7 @@ DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::B14
# Enable ethernet # Enable ethernet
LWIP = yes LWIP = yes
ALLOW_SHADOW = yes
DDEFS += -DEFI_ETHERNET=TRUE DDEFS += -DEFI_ETHERNET=TRUE
DEBUG_LEVEL_OPT = -Os -ggdb -g DEBUG_LEVEL_OPT = -Os -ggdb -g

View File

@ -6,6 +6,7 @@ DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::B14
# Enable ethernet # Enable ethernet
LWIP = yes LWIP = yes
ALLOW_SHADOW = yes
DDEFS += -DEFI_ETHERNET=TRUE DDEFS += -DEFI_ETHERNET=TRUE
DDEFS += -DFIRMWARE_ID=\"nucleo_h743\" DDEFS += -DFIRMWARE_ID=\"nucleo_h743\"

View File

@ -1,5 +1,9 @@
# Warnings-as-errors... # Warnings-as-errors...
RUSEFI_OPT = -Werror -Werror=shadow RUSEFI_OPT = -Werror
ifneq ($(ALLOW_SHADOW),yes)
RUSEFI_OPT += -Werror=shadow
endif
# ...except these few # ...except these few
RUSEFI_OPT += -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter RUSEFI_OPT += -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter