Skip to content

Commit 5c4de7e

Browse files
committed
More catch() analysis warning cleanups
1 parent bc7668c commit 5c4de7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.decent_ci-Linux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ compilers:
2626
skip_packaging: true
2727
cmake_extra_flags: -DBUILD_SAMPLES:BOOL=ON -DBUILD_PACKAGE:BOOL=ON -DBUILD_TESTING:BOOL=ON
2828
- name: cppcheck
29-
compiler_extra_flags: --enable=all -I include --inline-suppr -Umax --suppress="*:cmake*" --suppress="*:catch.hpp" --force
29+
compiler_extra_flags: --enable=all -I include --inline-suppr -Umax --suppress="*:cmake*" --suppress="*:unittests/catch.hpp" --force
3030

src/test_module.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
class TestBaseType
99
{
1010
public:
11-
TestBaseType() : val(10), const_val(15) { }
12-
TestBaseType(int) : val(10), const_val(15) {}
13-
TestBaseType(int *) : val(10), const_val(15) { }
11+
TestBaseType() : val(10), const_val(15), mdarray{} { }
12+
TestBaseType(int) : val(10), const_val(15), mdarray{} {}
13+
TestBaseType(int *) : val(10), const_val(15), mdarray{} { }
1414
TestBaseType(const TestBaseType &) = default;
1515
virtual ~TestBaseType() {}
1616
virtual int func() { return 0; }

0 commit comments

Comments
 (0)