diff options
| author | Martin Hořeňovský | 2019-10-31 14:29:59 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-10-31 14:29:59 +0100 |
| commit | 776a4686c7fa783fe3c57b7dbcefba57fe142c55 (patch) | |
| tree | 225f2c9ec7a9e11b3ea00f6097d3f0913f66934c /projects/SelfTest/UsageTests/ToStringVariant.tests.cpp | |
| parent | 3136c4fb6aeba965f0a6700eff60fa29d9b8c326 (diff) | |
| download | catch3-776a4686c7fa783fe3c57b7dbcefba57fe142c55.tar.gz | |
Warning fixes in examples and tests
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringVariant.tests.cpp')
| -rw-r--r-- | projects/SelfTest/UsageTests/ToStringVariant.tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp b/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp index 60b3f903..c6809c0f 100644 --- a/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp +++ b/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp @@ -9,12 +9,12 @@ // We need 2 types with non-trivial copies/moves struct MyType1 { MyType1() = default; - MyType1(MyType1 const&) { throw 1; } + [[noreturn]] MyType1(MyType1 const&) { throw 1; } MyType1& operator=(MyType1 const&) { throw 3; } }; struct MyType2 { MyType2() = default; - MyType2(MyType2 const&) { throw 2; } + [[noreturn]] MyType2(MyType2 const&) { throw 2; } MyType2& operator=(MyType2 const&) { throw 4; } }; |