From effc9411169fc983a4647b57f5669c68b2893421 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Wed, 11 Apr 2018 15:54:58 +0100 Subject: [PATCH] Fix warnings --- tests/bases.cpp | 4 ++-- tests/noexcept.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/bases.cpp b/tests/bases.cpp index d5c60aa..cff7819 100644 --- a/tests/bases.cpp +++ b/tests/bases.cpp @@ -32,8 +32,8 @@ TEST_CASE("Triviality", "[bases.triviality]") { struct T { T(const T&){} T(T&&) {}; - T& operator=(const T&) {} - T& operator=(T&&) {}; + T& operator=(const T&) { return *this; } + T& operator=(T&&) { return *this; }; ~T(){} }; REQUIRE(!std::is_trivially_copy_constructible>::value); diff --git a/tests/noexcept.cpp b/tests/noexcept.cpp index 315c08f..edfa88f 100644 --- a/tests/noexcept.cpp +++ b/tests/noexcept.cpp @@ -80,7 +80,7 @@ TEST_CASE("Noexcept", "[noexcept]") { struct throw_move_assign { throw_move_assign() = default; throw_move_assign(throw_move_assign &&){}; - throw_move_assign &operator=(const throw_move_assign &) {} + throw_move_assign &operator=(const throw_move_assign &) { return *this; } }; using nothrow_opt = tl::optional;