From a967ba05416db27127f9a0ba85bb92377e6bb73e Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 15 Apr 2019 01:54:26 +0200 Subject: Fix new gcc-9 warning -Wpessimizing-move warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] Reported-By: gcc-9 Gbp-Dch: Ignore --- methods/connect.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods/connect.cc b/methods/connect.cc index e5d17a2f5..fdcf965f8 100644 --- a/methods/connect.cc +++ b/methods/connect.cc @@ -262,7 +262,7 @@ static std::vector OrderAddresses(struct addrinfo *CurHost) allAddrs.push_back(*otherIter++); } - return std::move(allAddrs); + return allAddrs; } /*}}}*/ // Check for errors and report them /*{{{*/ -- cgit v1.2.3