Buld Tests: Update static analysis test for cppcheck 1.86.
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 8 Jan 2019 09:22:59 +0000 (20:22 +1100)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 8 Jan 2019 09:23:03 +0000 (20:23 +1100)
BuildTests/BoardDriverTest/Test.c
BuildTests/StaticAnalysisTest/makefile

index 226b3e8..95b8f04 100644 (file)
@@ -53,7 +53,7 @@
 
 int main(void)
 {
 
 int main(void)
 {
-       uint_reg_t Dummy;
+       uint_reg_t Dummy = 0;
 
        /* =============================
         *     Buttons Compile Check
 
        /* =============================
         *     Buttons Compile Check
index 6c0b70b..e9bb1b6 100644 (file)
@@ -6,7 +6,7 @@
 #           www.lufa-lib.org
 #
 
 #           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/
 
 # 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_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))/..
 
 
 SRC               := $(patsubst %/,%,$(LUFA_PATH))/..