|
|
@ -46,6 +46,14 @@ CC_FLAGS += -Wmissing-field-initializers
|
|
|
|
CC_FLAGS += -Wmissing-format-attribute
|
|
|
|
CC_FLAGS += -Wmissing-format-attribute
|
|
|
|
CC_FLAGS += -Woverlength-strings
|
|
|
|
CC_FLAGS += -Woverlength-strings
|
|
|
|
CC_FLAGS += -Wswitch-default
|
|
|
|
CC_FLAGS += -Wswitch-default
|
|
|
|
|
|
|
|
CC_FLAGS += -Wfloat-equal
|
|
|
|
|
|
|
|
CC_FLAGS += -Waggregate-return
|
|
|
|
|
|
|
|
CC_FLAGS += -Wmissing-include-dirs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Disable warnings not supported by the version of GCC used for UC3 targets (FIXME)
|
|
|
|
|
|
|
|
ifneq ($(ARCH), UC3)
|
|
|
|
|
|
|
|
CC_FLAGS += -Wdouble-promotion
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# Only enable rendundant declaration warnings for AVR8 target (FIXME)
|
|
|
|
# Only enable rendundant declaration warnings for AVR8 target (FIXME)
|
|
|
|
ifeq ($(ARCH), AVR8)
|
|
|
|
ifeq ($(ARCH), AVR8)
|
|
|
@ -54,13 +62,23 @@ endif
|
|
|
|
|
|
|
|
|
|
|
|
# C compiler only flags
|
|
|
|
# C compiler only flags
|
|
|
|
C_FLAGS += -Wmissing-parameter-type
|
|
|
|
C_FLAGS += -Wmissing-parameter-type
|
|
|
|
|
|
|
|
C_FLAGS += -Wmissing-prototypes
|
|
|
|
C_FLAGS += -Wnested-externs
|
|
|
|
C_FLAGS += -Wnested-externs
|
|
|
|
|
|
|
|
C_FLAGS += -Wbad-function-cast
|
|
|
|
|
|
|
|
C_FLAGS += -Wstrict-prototypes
|
|
|
|
|
|
|
|
C_FLAGS += -Wold-style-definition
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Disable warnings not supported by the version of GCC used for UC3 targets (FIXME)
|
|
|
|
|
|
|
|
ifneq ($(ARCH), UC3)
|
|
|
|
|
|
|
|
C_FLAGS += -Wunsuffixed-float-constants
|
|
|
|
|
|
|
|
C_FLAGS += -Wjump-misses-init
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# Potential additional warnings to enable in the future (FIXME)
|
|
|
|
# Potential additional warnings to enable in the future (FIXME)
|
|
|
|
#CC_FLAGS += -Wc++-compat
|
|
|
|
#C_FLAGS += -Wc++-compat
|
|
|
|
#CC_FLAGS += -Wcast-qual
|
|
|
|
#CC_FLAGS += -Wcast-qual
|
|
|
|
#CC_FLAGS += -Wconversion
|
|
|
|
#CC_FLAGS += -Wconversion
|
|
|
|
#CC_FLAGS += -Wjump-misses-init
|
|
|
|
#CC_FLAGS += -Wsign-conversion
|
|
|
|
#CC_FLAGS += -pedantic
|
|
|
|
#CC_FLAGS += -pedantic
|
|
|
|
|
|
|
|
|
|
|
|
# Include LUFA build script makefiles
|
|
|
|
# Include LUFA build script makefiles
|
|
|
|