prep adding Werror=shadow

This commit is contained in:
Matthew Kennedy 2023-11-01 15:37:00 -07:00 committed by rusefillc
parent 93e3e75a36
commit 0a767edd3d
3 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,8 @@ endif
# Hellen is one of the boards which cares
USE_CPPOPT += -Wno-error=tautological-compare
USE_CPPOPT += $(RUSEFI_CPPOPT)
# Enable this if you want the linker to remove unused code and data
ifeq ($(USE_LINK_GC),)
USE_LINK_GC = yes

View File

@ -78,6 +78,8 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT = -std=c++2a -Wno-register -fno-rtti
endif
USE_CPPOPT += $(RUSEFI_CPPOPT)
# Enable this if you want the linker to remove unused code and data.
ifeq ($(USE_LINK_GC),)
USE_LINK_GC = yes

View File

@ -76,6 +76,8 @@ ifeq ($(USE_CPPOPT),)
USE_CPPOPT = -std=gnu++2a -fno-rtti -fno-use-cxa-atexit
endif
USE_CPPOPT += $(RUSEFI_CPPOPT)
# Enable address sanitizer for C++ files, but not on Windows since x86_64-w64-mingw32-g++ doesn't support it.
# only c++ because lua does some things asan doesn't like, but don't actually cause overruns.
ifeq ($(SANITIZE),yes)