diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-12-13 14:02:12 -0800 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2025-03-10 12:38:03 -0700 |
| commit | 433c6ce0f20e33379985a56b58540197feeeff59 (patch) | |
| tree | e9a9352cf51bb44612d9fc07c336bdefad467d94 /Source/Core/DolphinTool/ExtractCommand.cpp | |
| parent | 87496205aa9c75217a715deb34c5fb60f6acbb2a (diff) | |
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.
Diffstat (limited to 'Source/Core/DolphinTool/ExtractCommand.cpp')
| -rw-r--r-- | Source/Core/DolphinTool/ExtractCommand.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<DiscIO::FileInfo> GetFileInfo(const DiscIO::Volume& disc_ if (!filesystem) return nullptr; - std::unique_ptr<DiscIO::FileInfo> info = filesystem->FindFileInfo(path); - return info; + return filesystem->FindFileInfo(path); } static bool VolumeSupported(const DiscIO::Volume& disc_volume) |
