forked from mfulz_github/qmk_firmware
Enable C++ compatibility check warnings in the ModuleTest build test.
This commit is contained in:
parent
1575ca57bb
commit
d1155a9a27
@ -11,15 +11,15 @@
|
|||||||
|
|
||||||
# Run "make help" for target help.
|
# Run "make help" for target help.
|
||||||
|
|
||||||
MCU =
|
MCU =
|
||||||
ARCH =
|
ARCH =
|
||||||
BOARD = NONE
|
BOARD = NONE
|
||||||
F_CPU = $(F_USB)
|
F_CPU = $(F_USB)
|
||||||
OPTIMIZATION = 1
|
OPTIMIZATION = 1
|
||||||
TARGET = Test
|
TARGET = Test
|
||||||
SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB)
|
SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB)
|
||||||
LUFA_PATH = ../../LUFA
|
LUFA_PATH = ../../LUFA
|
||||||
DEBUG_LEVEL = 0
|
DEBUG_LEVEL = 0
|
||||||
|
|
||||||
ifeq ($(ARCH), AVR8)
|
ifeq ($(ARCH), AVR8)
|
||||||
F_USB = 8000000
|
F_USB = 8000000
|
||||||
@ -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)
|
|||||||
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
|
||||||
@ -83,4 +85,4 @@ endif
|
|||||||
|
|
||||||
# Include LUFA build script makefiles
|
# Include LUFA build script makefiles
|
||||||
include $(LUFA_PATH)/Build/lufa_sources.mk
|
include $(LUFA_PATH)/Build/lufa_sources.mk
|
||||||
include $(LUFA_PATH)/Build/lufa_build.mk
|
include $(LUFA_PATH)/Build/lufa_build.mk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user