https://github.com/xbmc/xbmc/pull/25106 From 2bf5ab07731b3d4160196e6b8d9ab9e25bea2ef9 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 2 May 2024 08:02:42 +0000 Subject: [PATCH 1/2] add missing c++ headers Add missing headers which are no longer indirectly included by other headers, fixes build with gcc-14 Signed-off-by: Rudi Heitbaum --- a/xbmc/platform/posix/filesystem/SMBWSDiscoveryListener.cpp +++ b/xbmc/platform/posix/filesystem/SMBWSDiscoveryListener.cpp @@ -17,6 +17,7 @@ #include "platform/posix/filesystem/SMBWSDiscovery.h" +#include #include #include #include From b6ddd8fb25ef20e8adb9a9f9b53bebf0cee3a970 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 2 May 2024 08:05:00 +0000 Subject: [PATCH 2/2] Geometry: fix template-id not allowed for constructor fixes gcc-14 error: - warning: template-id not allowed for constructor in C++20 Signed-off-by: Rudi Heitbaum --- a/xbmc/utils/Geometry.h +++ b/xbmc/utils/Geometry.h @@ -177,7 +177,7 @@ template class CSizeGen return {m_w, m_h}; } - template explicit CSizeGen(const CSizeGen& rhs) + template explicit CSizeGen(const CSizeGen& rhs) { CheckSet(static_cast (rhs.m_w), static_cast (rhs.m_h)); }