Commit b04de2f2 authored by Dean Camera's avatar Dean Camera
Browse files

Pull out common options in the StaticAnalysisTest build test makefile into a...

Pull out common options in the StaticAnalysisTest build test makefile into a seperate make variable for clarity.

Add missing cppcheck inline suppression comment.
parent b9a486ef
...@@ -26,6 +26,9 @@ SUPPRESS_WARNINGS = variableScope \ ...@@ -26,6 +26,9 @@ SUPPRESS_WARNINGS = variableScope \
# Extra paths to search for include files # Extra paths to search for include files
INCLUDE_PATHS = $(LUFA_ROOT_PATH)/LUFA/CodeTemplates/ INCLUDE_PATHS = $(LUFA_ROOT_PATH)/LUFA/CodeTemplates/
# Configuration options to pass to cppcheck
CPPCHECK_OPTIONS = --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) --inline-suppr --force --error-exitcode=1 --std=c99
all: begin staticcheck end all: begin staticcheck end
...@@ -38,8 +41,8 @@ end: ...@@ -38,8 +41,8 @@ end:
@echo @echo
staticcheck: staticcheck:
cppcheck --quiet --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) --inline-suppr --force --check-config $(LUFA_ROOT_PATH) cppcheck --quiet $(CPPCHECK_OPTIONS) --check-config $(LUFA_ROOT_PATH)
cppcheck --quiet --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) --inline-suppr --force --error-exitcode=1 --std=c99 --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) --inconclusive $(LUFA_ROOT_PATH) cppcheck --quiet $(CPPCHECK_OPTIONS) --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) $(LUFA_ROOT_PATH)
%: %:
\ No newline at end of file
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
// cppcheck-suppress missingInclude // cppcheck-suppress missingInclude
#include "Lib/V2Protocol.h" #include "Lib/V2Protocol.h"
// cppcheck-suppress missingInclude
#include "Lib/SoftUART.h" #include "Lib/SoftUART.h"
#include <LUFA/Version.h> #include <LUFA/Version.h>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment