cppcheck
This commit is contained in:
parent
f67dadf938
commit
161abd76cf
@ -15,7 +15,11 @@ CFLAGS += \
|
||||
$(addprefix -I, $(INCLUDES)) \
|
||||
-Wall
|
||||
|
||||
CPPCHECK_FLAGS = --template=gcc --error-exitcode=1 --enable=all --inline-suppr
|
||||
CPPCHECK_FLAGS = \
|
||||
--template=gcc \
|
||||
--error-exitcode=1 \
|
||||
--enable=warning,performance,information,style \
|
||||
--inline-suppr
|
||||
|
||||
include $(ROOT_DIR)/config/make/tools.mk
|
||||
|
||||
|
@ -28,7 +28,7 @@ SOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.c)
|
||||
CHECKSOURCES += $(foreach folder, $(CHECK_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.c))
|
||||
ASMSOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.s))
|
||||
|
||||
all: $(MAINFILE)
|
||||
all: check $(MAINFILE)
|
||||
|
||||
check:
|
||||
$(CPPCHECK) $(CPPCHECK_FLAGS) $(CHECKSOURCES)
|
||||
|
Loading…
Reference in New Issue
Block a user