diff options
| author | 2021-05-29 08:55:37 +0200 | |
|---|---|---|
| committer | 2021-05-29 08:57:44 +0200 | |
| commit | 5a8cd1b118230450aeec8d770db87331bbc60812 (patch) | |
| tree | c100df6aa459de10b6162ae8d446d26e9623d2ef /src/core/hle/kernel/kernel.cpp | |
| parent | Merge pull request #6371 from degasus/drop_ExceptionalExit (diff) | |
| download | yuzu-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.cpp | 2 |
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(); |