cppcheck fixed
This commit is contained in:
@@ -15,11 +15,12 @@ CFLAGS += \
|
||||
$(addprefix -I, $(INCLUDES)) \
|
||||
-Wall
|
||||
|
||||
CPPCHECK_FLAGS = \
|
||||
CPPCHECK_FLAGS += \
|
||||
--template=gcc \
|
||||
--error-exitcode=1 \
|
||||
--enable=warning,performance,information,style \
|
||||
--inline-suppr
|
||||
--inline-suppr \
|
||||
$(addprefix -I, $(INCLUDES))
|
||||
|
||||
include $(ROOT_DIR)/config/make/tools.mk
|
||||
|
||||
|
@@ -7,7 +7,9 @@ CFLAGS += -DBOARD_STM32F4_DISCOVERY
|
||||
endif
|
||||
CROSS_COMPILE=arm-none-eabi-
|
||||
|
||||
INCLUDES := /usr/lib/arm-none-eabi/include
|
||||
INCLUDES += \
|
||||
/usr/lib/arm-none-eabi/include \
|
||||
/usr/lib/gcc/arm-none-eabi/4.8/include
|
||||
|
||||
ifeq ($(DEBUG),y)
|
||||
OPTIM = 0
|
||||
@@ -33,6 +35,16 @@ CFLAGS += \
|
||||
-ffunction-sections
|
||||
# -D inline= -mthumb\
|
||||
|
||||
CPPCHECK_FLAGS += \
|
||||
-D USE_STDPERIPH_DRIVER\
|
||||
-D VECT_TAB_FLASH\
|
||||
-D GCC_ARMCM4\
|
||||
-D THUMB_INTERWORK\
|
||||
-D PACK_STRUCT_END=__attribute\(\(packed\)\)\
|
||||
-D ALIGN_STRUCT_END=__attribute\(\(aligned\(4\)\)\)\
|
||||
-D __thumb__ \
|
||||
--check-config
|
||||
|
||||
LDFLAGS=\
|
||||
-Wl,--gc-sections \
|
||||
-Xlinker -M > $(MAP_DIR)/$(APP).map
|
||||
|
Reference in New Issue
Block a user