summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorGravatar Markus Wick2021-05-29 08:55:37 +0200
committerGravatar Markus Wick2021-05-29 08:57:44 +0200
commit5a8cd1b118230450aeec8d770db87331bbc60812 (patch)
treec100df6aa459de10b6162ae8d446d26e9623d2ef /src/core/hle/kernel/kernel.cpp
parentMerge pull request #6371 from degasus/drop_ExceptionalExit (diff)
downloadyuzu-5a8cd1b118230450aeec8d770db87331bbc60812.tar.gz
yuzu-5a8cd1b118230450aeec8d770db87331bbc60812.tar.xz
yuzu-5a8cd1b118230450aeec8d770db87331bbc60812.zip
Fix two GCC 11 warnings: Unneeded copies.
std::move created an unneeded copy. iterating without reference also created copies.
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 8b55df82e..7ca2a2ef1 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -258,7 +258,7 @@ struct KernelCore::Impl {
258 KAutoObject::Create(thread.get()); 258 KAutoObject::Create(thread.get());
259 ASSERT(KThread::InitializeDummyThread(thread.get()).IsSuccess()); 259 ASSERT(KThread::InitializeDummyThread(thread.get()).IsSuccess());
260 thread->SetName(fmt::format("DummyThread:{}", GetHostThreadId())); 260 thread->SetName(fmt::format("DummyThread:{}", GetHostThreadId()));
261 return std::move(thread); 261 return thread;
262 }; 262 };
263 263
264 thread_local auto thread = make_thread(); 264 thread_local auto thread = make_thread();