diff --git a/rpcs3/Emu/RSX/GL/GLGSRender.cpp b/rpcs3/Emu/RSX/GL/GLGSRender.cpp index c2c9189143..647e1dacf5 100644 --- a/rpcs3/Emu/RSX/GL/GLGSRender.cpp +++ b/rpcs3/Emu/RSX/GL/GLGSRender.cpp @@ -943,7 +943,7 @@ bool GLGSRender::on_access_violation(u32 address, bool is_writing) void GLGSRender::on_invalidate_memory_range(const utils::address_range &range, rsx::invalidation_cause cause) { gl::command_context cmd{ gl_state }; - auto data = std::move(m_gl_texture_cache.invalidate_range(cmd, range, cause)); + auto data = m_gl_texture_cache.invalidate_range(cmd, range, cause); AUDIT(data.empty()); if (cause == rsx::invalidation_cause::unmap && data.violation_handled) diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.cpp b/rpcs3/Emu/RSX/VK/VKGSRender.cpp index eb67592fcf..40bc8a1eee 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.cpp +++ b/rpcs3/Emu/RSX/VK/VKGSRender.cpp @@ -657,7 +657,7 @@ bool VKGSRender::on_access_violation(u32 address, bool is_writing) std::lock_guard lock(m_secondary_cb_guard); const rsx::invalidation_cause cause = is_writing ? rsx::invalidation_cause::deferred_write : rsx::invalidation_cause::deferred_read; - result = std::move(m_texture_cache.invalidate_address(m_secondary_command_buffer, address, cause)); + result = m_texture_cache.invalidate_address(m_secondary_command_buffer, address, cause); } if (result.invalidate_samplers) @@ -738,7 +738,7 @@ void VKGSRender::on_invalidate_memory_range(const utils::address_range &range, r { std::lock_guard lock(m_secondary_cb_guard); - auto data = std::move(m_texture_cache.invalidate_range(m_secondary_command_buffer, range, cause)); + auto data = m_texture_cache.invalidate_range(m_secondary_command_buffer, range, cause); AUDIT(data.empty()); if (cause == rsx::invalidation_cause::unmap) diff --git a/rpcs3/Emu/RSX/VK/VKOverlays.h b/rpcs3/Emu/RSX/VK/VKOverlays.h index 842d0408be..4be44f9e66 100644 --- a/rpcs3/Emu/RSX/VK/VKOverlays.h +++ b/rpcs3/Emu/RSX/VK/VKOverlays.h @@ -621,7 +621,7 @@ namespace vk else if (!temp) resources.push_back(std::move(tex)); else - temp_image_cache[key] = std::move(std::make_pair(owner_uid, std::move(tex))); + temp_image_cache[key] = std::make_pair(owner_uid, std::move(tex)); return result; } diff --git a/rpcs3/cmake_modules/ConfigureCompiler.cmake b/rpcs3/cmake_modules/ConfigureCompiler.cmake index 29b3172ae4..814db9f9de 100644 --- a/rpcs3/cmake_modules/ConfigureCompiler.cmake +++ b/rpcs3/cmake_modules/ConfigureCompiler.cmake @@ -46,7 +46,6 @@ else() add_compile_options(-fconstexpr-steps=16777216) add_compile_options(-Wno-unused-lambda-capture) add_compile_options(-Wno-unused-private-field) - add_compile_options(-Wno-pessimizing-move) add_compile_options(-Wno-delete-non-virtual-dtor) add_compile_options(-Wno-unused-command-line-argument) elseif(CMAKE_COMPILER_IS_GNUCXX)