From 85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Mon, 4 Mar 2024 00:12:05 +0000 Subject: Address C4100 compiler warnings (unused var) (#648) Adds and uses a macro to avoid the warning --- primedev/masterserver/masterserver.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'primedev/masterserver') diff --git a/primedev/masterserver/masterserver.cpp b/primedev/masterserver/masterserver.cpp index a2d9f00e..e7bb1132 100644 --- a/primedev/masterserver/masterserver.cpp +++ b/primedev/masterserver/masterserver.cpp @@ -988,6 +988,7 @@ void MasterServerManager::ProcessConnectionlessPacketSigreq1(std::string data) void ConCommand_ns_fetchservers(const CCommand& args) { + NOTE_UNUSED(args); g_pMasterServerManager->RequestServerList(); } @@ -1008,6 +1009,7 @@ ON_DLL_LOAD_RELIESON("engine.dll", MasterServer, (ConCommand, ServerPresence), ( void MasterServerPresenceReporter::CreatePresence(const ServerPresence* pServerPresence) { + NOTE_UNUSED(pServerPresence); m_nNumRegistrationAttempts = 0; } @@ -1051,6 +1053,7 @@ void MasterServerPresenceReporter::ReportPresence(const ServerPresence* pServerP void MasterServerPresenceReporter::DestroyPresence(const ServerPresence* pServerPresence) { + NOTE_UNUSED(pServerPresence); // Don't call this if we don't have a server id. if (!*g_pMasterServerManager->m_sOwnServerId) { @@ -1086,6 +1089,8 @@ void MasterServerPresenceReporter::DestroyPresence(const ServerPresence* pServer void MasterServerPresenceReporter::RunFrame(double flCurrentTime, const ServerPresence* pServerPresence) { + NOTE_UNUSED(flCurrentTime); + NOTE_UNUSED(pServerPresence); // Check if we're already running an InternalAddServer() call in the background. // If so, grab the result if it's ready. if (addServerFuture.valid()) -- cgit v1.2.3