summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2019-04-15 01:54:26 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2019-04-16 12:59:54 +0200
commita967ba05416db27127f9a0ba85bb92377e6bb73e (patch)
treee0c3f6ece3acb6c4cdceec1860d5e8ea7ba2ad1e
parent5557a3c337075f9700a67d9ef74a79e914768197 (diff)
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
-rw-r--r--methods/connect.cc2
1 files changed, 1 insertions, 1 deletions
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<struct addrinfo *> OrderAddresses(struct addrinfo *CurHost)
allAddrs.push_back(*otherIter++);
}
- return std::move(allAddrs);
+ return allAddrs;
}
/*}}}*/
// Check for errors and report them /*{{{*/