aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-05-12 16:58:34 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-05-12 16:58:34 -0500
commit342f8c8b97eef8bc5d30ca573e7d0fa86ba3817c (patch)
treef4386fe41b5ac7a271634a977ab3e710835e1e19 /tests
parentMerge pull request #7688 (diff)
parentclang: fix -Wpessimizing-move warning (diff)
downloadmonero-342f8c8b97eef8bc5d30ca573e7d0fa86ba3817c.tar.xz
Merge pull request #7690
3cc4428 clang: fix -Wpessimizing-move warning (selsta)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/epee_boosted_tcp_server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/epee_boosted_tcp_server.cpp b/tests/unit_tests/epee_boosted_tcp_server.cpp
index 84fc0a29b..d10b2bb33 100644
--- a/tests/unit_tests/epee_boosted_tcp_server.cpp
+++ b/tests/unit_tests/epee_boosted_tcp_server.cpp
@@ -320,7 +320,8 @@ TEST(test_epee_connection, test_lifetime)
connection_ptr conn;
{
lock_guard_t guard(shared_conn->lock);
- conn = std::move(shared_conn->conn.lock());
+ conn = shared_conn->conn.lock();
+ shared_conn->conn.reset();
}
if (conn)
conn->cancel();