mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 13:37:56 -05:00
Fix two GCC 11 warnings: Unneeded copies.
std::move created an unneeded copy. iterating without reference also created copies.
This commit is contained in:
@ -258,7 +258,7 @@ struct KernelCore::Impl {
|
||||
KAutoObject::Create(thread.get());
|
||||
ASSERT(KThread::InitializeDummyThread(thread.get()).IsSuccess());
|
||||
thread->SetName(fmt::format("DummyThread:{}", GetHostThreadId()));
|
||||
return std::move(thread);
|
||||
return thread;
|
||||
};
|
||||
|
||||
thread_local auto thread = make_thread();
|
||||
|
Reference in New Issue
Block a user