aboutsummaryrefslogtreecommitdiff
path: root/primedev/squirrel
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/squirrel
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/squirrel')
-rw-r--r--primedev/squirrel/squirrel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/primedev/squirrel/squirrel.cpp b/primedev/squirrel/squirrel.cpp
index 259d0f43..41a6a782 100644
--- a/primedev/squirrel/squirrel.cpp
+++ b/primedev/squirrel/squirrel.cpp
@@ -316,6 +316,7 @@ template <ScriptContext context> void SquirrelManager<context>::AddFuncOverride(
// hooks
bool IsUIVM(ScriptContext context, HSquirrelVM* pSqvm)
{
+ NOTE_UNUSED(context);
return ScriptContext(pSqvm->sharedState->cSquirrelVM->vmContext) == ScriptContext::UI;
}
@@ -334,6 +335,8 @@ template <ScriptContext context> void* __fastcall sq_compiler_createHook(HSquirr
template <ScriptContext context> SQInteger (*SQPrint)(HSquirrelVM* sqvm, const char* fmt);
template <ScriptContext context> SQInteger SQPrintHook(HSquirrelVM* sqvm, const char* fmt, ...)
{
+ NOTE_UNUSED(sqvm);
+
va_list va;
va_start(va, fmt);