diff options
author | ZiRee <tinacloud@gmx.de> | 2022-07-28 16:12:17 +0000 |
---|---|---|
committer | ZiRee <tinacloud@gmx.de> | 2022-07-28 16:12:17 +0000 |
commit | 59becbde7577d035f2e9a2a54b94ff2d554e7e73 (patch) | |
tree | e5b27f8ec3a2f56747044257ee2ed3c486b0e4b6 /indra/llcommon | |
parent | 1e4f2ec07e32a142f35817d3186a124df3f8cd25 (diff) |
GCC11.1 warning: moving a local object in a return statement prevents copy elision [-Werror=pessimizing-move]
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/threadsafeschedule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/threadsafeschedule.h b/indra/llcommon/threadsafeschedule.h index 3e0da94c02..0c3a541196 100644 --- a/indra/llcommon/threadsafeschedule.h +++ b/indra/llcommon/threadsafeschedule.h @@ -248,7 +248,7 @@ namespace LL TimePoint until = TimePoint::clock::now() + std::chrono::hours(24); pop_result popped = tryPopUntil_(lock, until, tt); if (popped == POPPED) - return std::move(tt); + return tt; // DONE: throw, just as super::pop() does if (popped == DONE) |