From 4534172c2f49fb670b173b3d77a1588abba2431d Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 29 Feb 2024 14:33:39 +1100 Subject: [PATCH] Fix build error compiling with Discord support [skip ci] --- source/application/StarP2PNetworkingService_pc.cpp | 2 +- source/application/StarPlatformServices_pc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/application/StarP2PNetworkingService_pc.cpp b/source/application/StarP2PNetworkingService_pc.cpp index 5bb99f9..66ef6b8 100644 --- a/source/application/StarP2PNetworkingService_pc.cpp +++ b/source/application/StarP2PNetworkingService_pc.cpp @@ -81,7 +81,7 @@ void PcP2PNetworkingService::setJoinRemote(HostAddressWithPort location) { setJoinLocation(JoinRemote(location)); } -void Star::PcP2PNetworkingService::setActivityData(String const&, Maybe>) { +void Star::PcP2PNetworkingService::setActivityData([[maybe_unused]] String const& title, [[maybe_unused]] Maybe> party) { #ifdef STAR_ENABLE_DISCORD_INTEGRATION MutexLocker discordLocker(m_state->discordMutex); #endif diff --git a/source/application/StarPlatformServices_pc.cpp b/source/application/StarPlatformServices_pc.cpp index 9470201..433d2da 100644 --- a/source/application/StarPlatformServices_pc.cpp +++ b/source/application/StarPlatformServices_pc.cpp @@ -98,7 +98,7 @@ void PcPlatformServicesState::onGameOverlayActivated(GameOverlayActivated_t* cal } #endif -PcPlatformServicesUPtr PcPlatformServices::create(String const&, StringList platformArguments) { +PcPlatformServicesUPtr PcPlatformServices::create([[maybe_unused]] String const& path, StringList platformArguments) { auto services = unique_ptr(new PcPlatformServices); services->m_state = make_shared();