1// Depending on how the project is compiled, some code
2// snippets are unused. So, some of the functions are not called.
3unusedFunction
4
5// missingIncludeSystem: Cppcheck can handle whether a system header (e. g.
6// stdio.h) can not be found, so we do not want those warnings.
7missingIncludeSystem
8
9// If Cppcheck does not find any errors to be suppressed,
10// it would raise a warning by default. This entry prevents that.
11unmatchedSuppression
12
13// redundantAssignment: Conflicts with a secure coding guideline stating to
14// 'Initialize variables'.
15redundantAssignment
16
17// Conflicts with our coding style that states all local
18// variables should be declared at the beginning of the function.
19variableScope
20
21// We often create register maps based on the documentations
22// and it can happen that we do not read or write a specific field.
23unusedStructMember
24
25// Cppcheck does not consider passing the address of the local variable as
26// using it.
27unusedVariable:*framework/test/test_fwk_list_init.c
28
29// Cppcheck can not properly understand fwk_expect() thus can not ascertain the
30// way we check for pointer values.
31nullPointerRedundantCheck:*product/juno/*
32
33// Cppcheck seems to get confused when encountering parentheses in strings
34syntaxError:*product/synquacer/module/synquacer_system/src/mmu500.c:34
35
36// Cppcheck seems to get confused with macro substitution
37syntaxError:*framework/src/fwk_log.c:183
38syntaxError:*framework/src/fwk_log.c:187
39syntaxError:*framework/src/fwk_log.c:189
40
41// Cppcheck doesn't like include directives that use macros
42preprocessorErrorDirective:*framework/test/fwk_module_idx.h:14
43
44// Cppcheck does not properly parse the `FWK_HAS_INCLUDE` macro
45preprocessorErrorDirective:*arch/arm/src/arch_mm.c:16
46preprocessorErrorDirective:*arch/arm/armv8-a/src/arch_mm.c:17
47
48// This memory has a static lifetime
49memleak:*product/rdv1mc/scp_ramfw/config_power_domain.c:156
50memleak:*product/rdv1mc/scp_ramfw/config_ppu_v1.c:87
51memleak:*product/tc0/scp_ramfw/config_power_domain.c:114
52memleak:*product/tc0/scp_ramfw/config_ppu_v1.c:87
53memleak:*product/tc0/scp_romfw/config_ppu_v1.c:81
54
55// This memory has static lifetime
56memleak:*framework/test/fwk_test.c:145
57
58// Cppcheck does not inspect these conditions deeply enough to know that the
59// dereference can only occur if the check succeeds
60nullPointerRedundantCheck:*framework/src/fwk_io.c
61nullPointerRedundantCheck:*product/sgm775/module/sgm775_dmc500/src/mod_sgm775_dmc500.c:78
62nullPointerRedundantCheck:*product/rcar/module/rcar_reg_sensor/src/mod_rcar_reg_sensor.c:147
63nullPointerRedundantCheck:*module/dmc500/src/mod_dmc500.c:60
64nullPointerRedundantCheck:*module/dmc500/src/mod_dmc500.c:61
65nullPointerRedundantCheck:*module/dmc500/src/mod_dmc500.c:65
66nullPointerRedundantCheck:*module/mhu2/src/mod_mhu2.c:90
67nullPointerRedundantCheck:*module/pl011/src/mod_pl011.c:139
68nullPointerRedundantCheck:*module/pl011/src/mod_pl011.c:140
69nullPointerRedundantCheck:*module/ppu_v1/src/mod_ppu_v1.c:609
70nullPointerRedundantCheck:*module/ppu_v1/src/mod_ppu_v1.c:620
71nullPointerRedundantCheck:*module/ppu_v1/src/mod_ppu_v1.c:642
72nullPointerRedundantCheck:*module/ppu_v1/src/mod_ppu_v1.c:942
73nullPointerRedundantCheck:*module/ppu_v1/src/mod_ppu_v1.c:943
74nullPointerRedundantCheck:*module/reg_sensor/src/mod_reg_sensor.c:52
75nullPointerRedundantCheck:*module/sds/src/mod_sds.c:273
76nullPointerRedundantCheck:*module/sds/src/mod_sds.c:279
77nullPointerRedundantCheck:*module/timer/src/mod_timer.c:541
78nullPointerRedundantCheck:*module/timer/src/mod_timer.c:551
79nullPointerRedundantCheck:*module/timer/src/mod_timer.c:546
80nullPointerRedundantCheck:*product/n1sdp/module/n1sdp_dmc620/src/mod_n1sdp_dmc620.c:1275
81nullPointerRedundantCheck:*product/n1sdp/module/n1sdp_dmc620/src/mod_n1sdp_dmc620.c:1276
82nullPointerRedundantCheck:*module/dmc620/src/mod_dmc620.c:61
83nullPointerRedundantCheck:*product/synquacer/module/f_uart3/src/mod_f_uart3.c:111
84nullPointerRedundantCheck:*product/synquacer/module/f_uart3/src/mod_f_uart3.c:112
85nullPointerRedundantCheck:*product/synquacer/module/f_uart3/src/mod_f_uart3.c:122
86nullPointerRedundantCheck:*product/synquacer/module/ccn512/src/mod_ccn512.c:140
87nullPointerRedundantCheck:*product/synquacer/module/ccn512/src/mod_ccn512.c:211
88
89// Cppcheck is not abe to inspect the fwk_assert deeply enough to know that
90// zero value assignment is asserted
91zerodivcond:*product/juno/module/juno_cdcel937/src/mod_juno_cdcel937.c:390
92zerodivcond:*product/juno/module/juno_cdcel937/src/mod_juno_cdcel937.c:397
93zerodivcond:*product/juno/module/juno_cdcel937/src/mod_juno_cdcel937.c:414
94
95// Cppcheck does not interpret Assembler syntax
96syntaxError:*arch/arm/armv8-a/include/arch_system.h:19
97
98// Cppcheck is not able to parse returned boolean values inside if conditions
99internalAstError:*framework/src/fwk_core.c:295
100
101// These assignments are used for testing
102constArgument:*framework/test/test_fwk_macros.c
103
104// Variable is passed by reference to function. Cppcheck is unable to check
105// this.
106unreadVariable:*module/dvfs/src/mod_dvfs.c:297
107
108// Synquacer `unreadVariable` errors are suppressed until they are fully
109// resolved.
110unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:240
111unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:241
112unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:411
113unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:418
114unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:423
115unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:567
116unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:571
117unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:575
118unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:576
119unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:582
120unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:583
121unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:644
122unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:645
123unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:679
124unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:694
125unreadVariable:*product/synquacer/module/f_i2c/src/i2c_driver.c:699
126
127// Cppcheck is not abe to inspect fwk_list_init macro correctly
128shadowVariable:*framework/test/test_fwk_notification.c:117
129shadowVariable:*framework/test/test_fwk_notification.c:120
130
131// Cppcheck doesn't retrieve the correct definition of CLUS_PPU_INT_STATUS
132// from the corresponding header file
133AssignmentAddressToInteger:*product/rdv1/module/platform_system/src/mod_platform_system.c:143
134AssignmentAddressToInteger:*product/rdv1mc/module/platform_system/src/mod_platform_system.c:146
135
136// TODO
137arrayIndexOutOfBoundsCond:*module/cmn600/src/mod_cmn600.c:447
138arrayIndexOutOfBoundsCond:*module/cmn600/src/mod_cmn600.c:461
139arrayIndexOutOfBoundsCond:*module/cmn600/src/mod_cmn600.c:463
140arrayIndexOutOfBoundsCond:*module/cmn700/src/cmn700.c:252
141arrayIndexOutOfBounds:*product/rdv1/module/platform_system/src/mod_platform_system.c:120
142arrayIndexOutOfBounds:*product/rdv1/module/platform_system/src/mod_platform_system.c:126
143arrayIndexOutOfBounds:*product/rdv1/module/platform_system/src/mod_platform_system.c:132
144arrayIndexOutOfBounds:*product/rdv1/module/platform_system/src/mod_platform_system.c:138
145arrayIndexOutOfBounds:*product/rdv1mc/module/platform_system/src/mod_platform_system.c:123
146arrayIndexOutOfBounds:*product/rdv1mc/module/platform_system/src/mod_platform_system.c:129
147arrayIndexOutOfBounds:*product/rdv1mc/module/platform_system/src/mod_platform_system.c:135
148arrayIndexOutOfBounds:*product/rdv1mc/module/platform_system/src/mod_platform_system.c:141
149objectIndex:*product/n1sdp/module/n1sdp_pcie/src/n1sdp_pcie.c:438
150objectIndex:*product/morello/module/morello_pcie/src/morello_pcie.c:390
151knownConditionTrueFalse:*product/n1sdp/module/n1sdp_dmc620/src/mod_n1sdp_dmc620.c:85
152syntaxError:*product/morello/scp_ramfw_soc/config_resource_perms.c:54
153syntaxError:*product/morello/module/dmc_bing/include/mod_dmc_bing.h:789
154
155// Suppress CMSIS errors
156*:*/CMSIS*/*
157