diff options
author | LC <mathew1800@gmail.com> | 2020-10-28 08:14:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 08:14:58 +0100 |
commit | 55ac6f7a2bf2d2a777f8198806383a093e698453 (patch) | |
tree | efebd3b7a220d23859c96e41e365763e92d74632 /src | |
parent | Merge pull request #4842 from liushuyu/fix-web-srv (diff) | |
parent | video_core: Enforce -Wredundant-move and -Wpessimizing-move (diff) | |
download | yuzu-55ac6f7a2bf2d2a777f8198806383a093e698453.tar yuzu-55ac6f7a2bf2d2a777f8198806383a093e698453.tar.gz yuzu-55ac6f7a2bf2d2a777f8198806383a093e698453.tar.bz2 yuzu-55ac6f7a2bf2d2a777f8198806383a093e698453.tar.lz yuzu-55ac6f7a2bf2d2a777f8198806383a093e698453.tar.xz yuzu-55ac6f7a2bf2d2a777f8198806383a093e698453.tar.zst yuzu-55ac6f7a2bf2d2a777f8198806383a093e698453.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/video_core/command_classes/codecs/vp9.cpp | 2 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 3 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/wrapper.cpp | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index fdfc885fc..567084241 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -302,6 +302,8 @@ else() target_compile_options(video_core PRIVATE -Werror=conversion -Wno-error=sign-conversion + -Werror=pessimizing-move + -Werror=redundant-move -Werror=switch -Werror=unused-variable diff --git a/src/video_core/command_classes/codecs/vp9.cpp b/src/video_core/command_classes/codecs/vp9.cpp index 3bae0bb5d..747c63d85 100644 --- a/src/video_core/command_classes/codecs/vp9.cpp +++ b/src/video_core/command_classes/codecs/vp9.cpp @@ -366,7 +366,7 @@ Vp9PictureInfo VP9::GetVp9PictureInfo(const NvdecCommon::NvdecRegisters& state) // to avoid buffering frame data needed for reference frame updating in the header composition. std::memcpy(vp9_info.frame_offsets.data(), state.surface_luma_offset.data(), 4 * sizeof(u64)); - return std::move(vp9_info); + return vp9_info; } void VP9::InsertEntropy(u64 offset, Vp9EntropyProbs& dst) { diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp index 166ee34e1..70dd0c3c6 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp @@ -317,8 +317,7 @@ std::optional<std::vector<ShaderDiskCachePrecompiled>> ShaderDiskCacheOpenGL::Lo return std::nullopt; } } - - return std::move(entries); + return entries; } void ShaderDiskCacheOpenGL::InvalidateTransferable() { diff --git a/src/video_core/renderer_vulkan/wrapper.cpp b/src/video_core/renderer_vulkan/wrapper.cpp index c034558a3..4e83303d8 100644 --- a/src/video_core/renderer_vulkan/wrapper.cpp +++ b/src/video_core/renderer_vulkan/wrapper.cpp @@ -844,7 +844,7 @@ std::optional<std::vector<VkExtensionProperties>> EnumerateInstanceExtensionProp VK_SUCCESS) { return std::nullopt; } - return std::move(properties); + return properties; } std::optional<std::vector<VkLayerProperties>> EnumerateInstanceLayerProperties( |