From 433c6ce0f20e33379985a56b58540197feeeff59 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:02:12 -0800 Subject: GCC: Remedy NRVO Fails Using the `-Wnrvo` flag introduced by GCC 14, I identified a few places where NRVO was clearly intended, but is fumbled. --- Source/Core/DolphinTool/ExtractCommand.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/DolphinTool/ExtractCommand.cpp') diff --git a/Source/Core/DolphinTool/ExtractCommand.cpp b/Source/Core/DolphinTool/ExtractCommand.cpp index d1daa3dd07..32d2a49d86 100644 --- a/Source/Core/DolphinTool/ExtractCommand.cpp +++ b/Source/Core/DolphinTool/ExtractCommand.cpp @@ -39,8 +39,7 @@ static std::unique_ptr GetFileInfo(const DiscIO::Volume& disc_ if (!filesystem) return nullptr; - std::unique_ptr info = filesystem->FindFileInfo(path); - return info; + return filesystem->FindFileInfo(path); } static bool VolumeSupported(const DiscIO::Volume& disc_volume) -- cgit v1.2.3