Skip to content
Snippets Groups Projects
Commit d1155a9a authored by Dean Camera's avatar Dean Camera
Browse files

Enable C++ compatibility check warnings in the ModuleTest build test.

parent 1575ca57
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ ifneq ($(ARCH), UC3) ...@@ -55,7 +55,7 @@ ifneq ($(ARCH), UC3)
CC_FLAGS += -Wdouble-promotion CC_FLAGS += -Wdouble-promotion
endif endif
# Only enable rendundant declaration warnings for AVR8 target (FIXME) # Only enable redundant declaration warnings for AVR8 target (FIXME)
ifeq ($(ARCH), AVR8) ifeq ($(ARCH), AVR8)
CC_FLAGS += -Wredundant-decls CC_FLAGS += -Wredundant-decls
endif endif
...@@ -74,8 +74,10 @@ ifneq ($(ARCH), UC3) ...@@ -74,8 +74,10 @@ ifneq ($(ARCH), UC3)
C_FLAGS += -Wjump-misses-init C_FLAGS += -Wjump-misses-init
endif endif
# Only check C++ compatibility on the build files, to ensure headers are C++ compatible
Test_C.c Test_CPP.c: CC_FLAGS += -Wc++-compat
# Potential additional warnings to enable in the future (FIXME) # Potential additional warnings to enable in the future (FIXME)
#C_FLAGS += -Wc++-compat
#CC_FLAGS += -Wcast-qual #CC_FLAGS += -Wcast-qual
#CC_FLAGS += -Wconversion #CC_FLAGS += -Wconversion
#CC_FLAGS += -Wsign-conversion #CC_FLAGS += -Wsign-conversion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment