aboutsummaryrefslogtreecommitdiff
path: root/tools/cppcheck_suppress_list.txt
blob: 6b80a5409eca148c77d9e2be62b5c8f7feb7d5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// No checking
*:*

// Depending on how the project is compiled, some code
// snippets are unused. So, some of the functions are not called.
unusedFunction

// missingIncludeSystem: Cppcheck can handle whether a system header (e. g.
// stdio.h) can not be found, so we do not want those warnings.
missingIncludeSystem

// If Cppcheck does not find any errors to be suppressed,
// it would raise a warning by default. This entry prevents that.
unmatchedSuppression

// redundantAssignment: Conflicts with a secure coding guideline stating to
// 'Initialize variables'.
redundantAssignment

// Conflicts with our coding style that states all local
// variables should be declared at the beginning of the function.
variableScope

// We often create register maps based on the documentations
// and it can happen that we do not read or write a specific field.
unusedStructMember

// Cppcheck does not consider passing the address of the local variable as
// using it.
unusedVariable:framework/test/test_fwk_list_init.c

// Cppcheck can not properly understand fwk_expect() thus can not ascertain the
// way we check for pointer values.
nullPointerRedundantCheck:product/juno/*

// Cppcheck seems to get confused when encountering parentheses in strings
syntaxError:product/synquacer/module/synquacer_system/src/mmu500.c:34

// Cppcheck doesn't like include directives that use macros
preprocessorErrorDirective:framework/test/fwk_module_idx.h:14

// Cppcheck does not properly parse the `FWK_HAS_INCLUDE` macro
preprocessorErrorDirective:arch/arm/src/arch_mm.c:16

// This memory has a static lifetime
memleak:product/rddanielxlr/scp_ramfw/config_power_domain.c:156
memleak:product/rddanielxlr/scp_ramfw/config_ppu_v1.c:87
memleak:product/tc0/scp_ramfw/config_power_domain.c:114
memleak:product/tc0/scp_ramfw/config_ppu_v1.c:87
memleak:product/tc0/scp_romfw/config_ppu_v1.c:81

// This memory has static lifetime
memleak:framework/test/fwk_test.c:145

// Cppcheck does not inspect these conditions deeply enough to know that the
// dereference can only occur if the check succeeds
nullPointerRedundantCheck:framework/src/fwk_io.c