aboutsummaryrefslogtreecommitdiff
path: root/primedev/logging/loghooks.cpp
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/logging/loghooks.cpp
parent4b0726d97788edff5d83476cb52057f409d623af (diff)
downloadNorthstarLauncher-85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3.tar.gz
NorthstarLauncher-85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3.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/logging/loghooks.cpp')
-rw-r--r--primedev/logging/loghooks.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/primedev/logging/loghooks.cpp b/primedev/logging/loghooks.cpp
index 7efb5b99..dcd9b85a 100644
--- a/primedev/logging/loghooks.cpp
+++ b/primedev/logging/loghooks.cpp
@@ -108,6 +108,8 @@ AUTOHOOK(Hook_fprintf, engine.dll + 0x51B1F0,
int,, (void* const stream, const char* const format, ...))
// clang-format on
{
+ NOTE_UNUSED(stream);
+
va_list va;
va_start(va, format);
@@ -139,6 +141,7 @@ AUTOHOOK(EngineSpewFunc, engine.dll + 0x11CA80,
void, __fastcall, (void* pEngineServer, SpewType_t type, const char* format, va_list args))
// clang-format on
{
+ NOTE_UNUSED(pEngineServer);
if (!Cvar_spewlog_enable->GetBool())
return;
@@ -235,6 +238,8 @@ AUTOHOOK(CClientState_ProcessPrint, engine.dll + 0x1A1530,
bool,, (void* thisptr, uintptr_t msg))
// clang-format on
{
+ NOTE_UNUSED(thisptr);
+
char* text = *(char**)(msg + 0x20);
auto endpos = strlen(text);