From 73d24448651897ec7ca4e8acdb4c181f2b64b69b Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 4 Jul 2017 02:04:05 +0200 Subject: [PATCH] please clang --- src/simix/smx_network.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simix/smx_network.cpp b/src/simix/smx_network.cpp index 2dcabbc1de..3af6159824 100644 --- a/src/simix/smx_network.cpp +++ b/src/simix/smx_network.cpp @@ -58,7 +58,7 @@ _find_matching_comm(boost::circular_buffer_space_optimized* dequ comm->mbox_cpy = comm->mbox; #endif comm->mbox = nullptr; - return std::move(comm); + return comm; } XBT_DEBUG("Sorry, communication synchro %p does not match our needs:" " its type is %d but we are looking for a comm of type %d (or maybe the filtering didn't match)", @@ -188,8 +188,8 @@ SIMIX_comm_irecv(smx_actor_t dst_proc, smx_mailbox_t mbox, void* dst_buff, size_ XBT_DEBUG("We have a comm that has probably already been received, trying to match it, to skip the communication"); //find a match in the list of already received comms - other_comm = std::move(_find_matching_comm(&mbox->done_comm_queue, SIMIX_COMM_SEND, match_fun, data, this_synchro, - /*remove_matching*/ true)); + other_comm = _find_matching_comm(&mbox->done_comm_queue, SIMIX_COMM_SEND, match_fun, data, this_synchro, + /*remove_matching*/ true); //if not found, assume the receiver came first, register it to the mailbox in the classical way if (not other_comm) { XBT_DEBUG("We have messages in the permanent receive list, but not the one we are looking for, pushing request into list"); -- 2.20.1