From: Dean Camera Date: Tue, 8 Jan 2019 09:22:59 +0000 (+1100) Subject: Buld Tests: Update static analysis test for cppcheck 1.86. X-Git-Tag: LUFA-210130~20 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/ffaa83ad27fa3713a86d04dcbf200b1de0454bfc Buld Tests: Update static analysis test for cppcheck 1.86. --- diff --git a/BuildTests/BoardDriverTest/Test.c b/BuildTests/BoardDriverTest/Test.c index 226b3e8e5..95b8f04d0 100644 --- a/BuildTests/BoardDriverTest/Test.c +++ b/BuildTests/BoardDriverTest/Test.c @@ -53,7 +53,7 @@ int main(void) { - uint_reg_t Dummy; + uint_reg_t Dummy = 0; /* ============================= * Buttons Compile Check diff --git a/BuildTests/StaticAnalysisTest/makefile b/BuildTests/StaticAnalysisTest/makefile index 6c0b70b3f..e9bb1b69c 100644 --- a/BuildTests/StaticAnalysisTest/makefile +++ b/BuildTests/StaticAnalysisTest/makefile @@ -6,7 +6,7 @@ # www.lufa-lib.org # -# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool. +# Static analysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool. # Path to the LUFA library core LUFA_PATH := ../../LUFA/ @@ -21,7 +21,7 @@ CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/ CPPCHECK_FLAGS := -U TEMPLATE_FUNC_NAME -U __GNUC__ -U __DOXYGEN__ -CPPCHECK_SUPPRESS := variableScope missingInclude noValidConfiguration unusedFunction redundantAssignment +CPPCHECK_SUPPRESS := variableScope missingInclude noValidConfiguration unusedFunction knownConditionTrueFalse ConfigurationNotChecked SRC := $(patsubst %/,%,$(LUFA_PATH))/..