Skip to content

Commit 68e3568

Browse files
committed
[CI] Temporarily suppress memset/memcpy errors for cppcheck
Cppcheck is reporting errors in src/stats/stats_reader.cpp:: - Using 'memset' on struct that contains a 'std::atomic' - Using 'memcpy' on struct that contains a 'std::bitset' We agreed to temporarily suppress such errors and that these errors will be addressed in a different Redmine task: 4432169 Signed-off-by: Viacheslav Login <[email protected]>
1 parent db99eda commit 68e3568

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/jenkins_tests/cppcheck.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ eval "find ${WORKSPACE}/src -name '*.h' -o -name '*.cpp' -o -name '*.c' -o -name
4242
-I${cppcheck_dir} \
4343
--inline-suppr --suppress=memleak:config_parser.y \
4444
--suppress=syntaxError:${WORKSPACE}/src/core/config_parser.c \
45+
--suppress=memsetClass:${WORKSPACE}/src/stats/stats_reader.cpp \
46+
--suppress=memcpyClass:${WORKSPACE}/src/stats/stats_reader.cpp \
4547
--template='{severity}: {id}: {file}:{line}: {message}' \
4648
--file-list=- 2> ${cppcheck_dir}/cppcheck.err 1> ${cppcheck_dir}/cppcheck.log"
4749
rc=$(($rc+$?))

0 commit comments

Comments
 (0)