More catch() analysis warning cleanups

This commit is contained in:
Jason Turner
2015-04-24 14:29:15 -06:00
parent bc7668c700
commit 5c4de7e43c
2 changed files with 4 additions and 4 deletions

View File

@@ -26,5 +26,5 @@ compilers:
skip_packaging: true skip_packaging: true
cmake_extra_flags: -DBUILD_SAMPLES:BOOL=ON -DBUILD_PACKAGE:BOOL=ON -DBUILD_TESTING:BOOL=ON cmake_extra_flags: -DBUILD_SAMPLES:BOOL=ON -DBUILD_PACKAGE:BOOL=ON -DBUILD_TESTING:BOOL=ON
- name: cppcheck - name: cppcheck
compiler_extra_flags: --enable=all -I include --inline-suppr -Umax --suppress="*:cmake*" --suppress="*:catch.hpp" --force compiler_extra_flags: --enable=all -I include --inline-suppr -Umax --suppress="*:cmake*" --suppress="*:unittests/catch.hpp" --force

View File

@@ -8,9 +8,9 @@
class TestBaseType class TestBaseType
{ {
public: public:
TestBaseType() : val(10), const_val(15) { } TestBaseType() : val(10), const_val(15), mdarray{} { }
TestBaseType(int) : val(10), const_val(15) {} TestBaseType(int) : val(10), const_val(15), mdarray{} {}
TestBaseType(int *) : val(10), const_val(15) { } TestBaseType(int *) : val(10), const_val(15), mdarray{} { }
TestBaseType(const TestBaseType &) = default; TestBaseType(const TestBaseType &) = default;
virtual ~TestBaseType() {} virtual ~TestBaseType() {}
virtual int func() { return 0; } virtual int func() { return 0; }