aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-04-27 06:28:24 +0200
committerselsta <selsta@sent.at>2021-04-28 11:33:37 +0200
commit3cc4428d45c830e2f181b4ec608ae2cca4103887 (patch)
tree36b79ddfade6db6a1cd702205640ab0059e2d0ca
parentMerge pull request #7669 (diff)
downloadmonero-3cc4428d45c830e2f181b4ec608ae2cca4103887.tar.xz
clang: fix -Wpessimizing-move warning
-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();