From e06480a8ab61e67813fb698a162aabc867a20d78 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 20:33:41 -0500 Subject: Software/SWGfx: Default destructor in cpp file Fixes a build failure with clang 17. The destructor needs to be in the cpp file, since we have a forward declared std::unique_ptr type as part of the class. So technically the default inline destructor could invoke without seeing the full data type definition. --- Source/Core/VideoBackends/Software/SWGfx.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/VideoBackends/Software/SWGfx.cpp') diff --git a/Source/Core/VideoBackends/Software/SWGfx.cpp b/Source/Core/VideoBackends/Software/SWGfx.cpp index 78d2d14d63..7b9196063d 100644 --- a/Source/Core/VideoBackends/Software/SWGfx.cpp +++ b/Source/Core/VideoBackends/Software/SWGfx.cpp @@ -22,6 +22,8 @@ SWGfx::SWGfx(std::unique_ptr window) : m_window(std::move(window)) { } +SWGfx::~SWGfx() = default; + bool SWGfx::IsHeadless() const { return m_window->IsHeadless(); -- cgit v1.2.3