From 161abd76cf518cfc16f593ee1ed075d63bf40898 Mon Sep 17 00:00:00 2001 From: tkl Date: Sat, 23 Jul 2016 11:19:32 +0200 Subject: [PATCH] cppcheck --- config/make/rules.mk | 6 +++++- source/Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/make/rules.mk b/config/make/rules.mk index 45e4a31..501d1dc 100755 --- a/config/make/rules.mk +++ b/config/make/rules.mk @@ -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 diff --git a/source/Makefile b/source/Makefile index 97259aa..9e7ff9c 100755 --- a/source/Makefile +++ b/source/Makefile @@ -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)