aboutsummaryrefslogtreecommitdiff
path: root/primedev/shared
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-03-04 00:12:05 +0000
committerGitHub <noreply@github.com>2024-03-04 01:12:05 +0100
commit85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3 (patch)
tree146142afc5d0e9272efbdca08108e4674a32f764 /primedev/shared
parent4b0726d97788edff5d83476cb52057f409d623af (diff)
downloadNorthstarLauncher-1.24.3-rc2.tar.gz
NorthstarLauncher-1.24.3-rc2.zip
Address C4100 compiler warnings (unused var) (#648)v1.24.4-rc1v1.24.3-rc3v1.24.3-rc2v1.24.3
Adds and uses a macro to avoid the warning
Diffstat (limited to 'primedev/shared')
-rw-r--r--primedev/shared/exploit_fixes/exploitfixes.cpp2
-rw-r--r--primedev/shared/exploit_fixes/exploitfixes_lzss.cpp1
-rw-r--r--primedev/shared/exploit_fixes/ns_limits.cpp1
-rw-r--r--primedev/shared/misccommands.cpp2
4 files changed, 6 insertions, 0 deletions
diff --git a/primedev/shared/exploit_fixes/exploitfixes.cpp b/primedev/shared/exploit_fixes/exploitfixes.cpp
index 7850f7b0..d96bc41e 100644
--- a/primedev/shared/exploit_fixes/exploitfixes.cpp
+++ b/primedev/shared/exploit_fixes/exploitfixes.cpp
@@ -55,6 +55,8 @@ AUTOHOOK(Base_CmdKeyValues_ReadFromBuffer, engine.dll + 0x220040,
bool, __fastcall, (void* thisptr, void* buffer)) // 40 55 48 81 EC ? ? ? ? 48 8D 6C 24 ? 48 89 5D 70
// clang-format on
{
+ NOTE_UNUSED(thisptr);
+ NOTE_UNUSED(buffer);
return false;
}
diff --git a/primedev/shared/exploit_fixes/exploitfixes_lzss.cpp b/primedev/shared/exploit_fixes/exploitfixes_lzss.cpp
index ccb6ac18..9a9a5691 100644
--- a/primedev/shared/exploit_fixes/exploitfixes_lzss.cpp
+++ b/primedev/shared/exploit_fixes/exploitfixes_lzss.cpp
@@ -16,6 +16,7 @@ AUTOHOOK(CLZSS__SafeDecompress, engine.dll + 0x432A10,
unsigned int, __fastcall, (void* self, const unsigned char* pInput, unsigned char* pOutput, unsigned int unBufSize))
// clang-format on
{
+ NOTE_UNUSED(self);
unsigned int totalBytes = 0;
int getCmdByte = 0;
int cmdByte = 0;
diff --git a/primedev/shared/exploit_fixes/ns_limits.cpp b/primedev/shared/exploit_fixes/ns_limits.cpp
index bd855ee4..63abbf69 100644
--- a/primedev/shared/exploit_fixes/ns_limits.cpp
+++ b/primedev/shared/exploit_fixes/ns_limits.cpp
@@ -16,6 +16,7 @@ float (*CEngineServer__GetTimescale)();
// todo: make this work on higher timescales, also possibly disable when sv_cheats is set
void ServerLimitsManager::RunFrame(double flCurrentTime, float flFrameTime)
{
+ NOTE_UNUSED(flCurrentTime);
if (Cvar_sv_antispeedhack_enable->GetBool())
{
// for each player, set their usercmd processing budget for the frame to the last frametime for the server
diff --git a/primedev/shared/misccommands.cpp b/primedev/shared/misccommands.cpp
index 648525b9..29d92d2d 100644
--- a/primedev/shared/misccommands.cpp
+++ b/primedev/shared/misccommands.cpp
@@ -21,6 +21,7 @@ void ConCommand_force_newgame(const CCommand& arg)
void ConCommand_ns_start_reauth_and_leave_to_lobby(const CCommand& arg)
{
+ NOTE_UNUSED(arg);
// hack for special case where we're on a local server, so we erase our own newly created auth data on disconnect
g_pMasterServerManager->m_bNewgameAfterSelfAuth = true;
g_pMasterServerManager->AuthenticateWithOwnServer(g_pLocalPlayerUserID, g_pMasterServerManager->m_sOwnClientAuthToken);
@@ -28,6 +29,7 @@ void ConCommand_ns_start_reauth_and_leave_to_lobby(const CCommand& arg)
void ConCommand_ns_end_reauth_and_leave_to_lobby(const CCommand& arg)
{
+ NOTE_UNUSED(arg);
if (g_pServerAuthentication->m_RemoteAuthenticationData.size())
g_pCVar->FindVar("serverfilter")->SetValue(g_pServerAuthentication->m_RemoteAuthenticationData.begin()->first.c_str());