aboutsummaryrefslogtreecommitdiff
path: root/primedev/scripts
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/scripts
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/scripts')
-rw-r--r--primedev/scripts/client/scriptmainmenupromos.cpp1
-rw-r--r--primedev/scripts/client/scriptmodmenu.cpp1
-rw-r--r--primedev/scripts/client/scriptserverbrowser.cpp4
-rw-r--r--primedev/scripts/scriptdatatables.cpp1
4 files changed, 7 insertions, 0 deletions
diff --git a/primedev/scripts/client/scriptmainmenupromos.cpp b/primedev/scripts/client/scriptmainmenupromos.cpp
index ecb47af7..91bc3002 100644
--- a/primedev/scripts/client/scriptmainmenupromos.cpp
+++ b/primedev/scripts/client/scriptmainmenupromos.cpp
@@ -23,6 +23,7 @@ enum eMainMenuPromoDataProperty
};
ADD_SQFUNC("void", NSRequestCustomMainMenuPromos, "", "", ScriptContext::UI)
{
+ NOTE_UNUSED(sqvm);
g_pMasterServerManager->RequestMainMenuPromos();
return SQRESULT_NULL;
}
diff --git a/primedev/scripts/client/scriptmodmenu.cpp b/primedev/scripts/client/scriptmodmenu.cpp
index a88478fb..2e877db4 100644
--- a/primedev/scripts/client/scriptmodmenu.cpp
+++ b/primedev/scripts/client/scriptmodmenu.cpp
@@ -160,6 +160,7 @@ ADD_SQFUNC(
ADD_SQFUNC("void", NSReloadMods, "", "", ScriptContext::UI)
{
+ NOTE_UNUSED(sqvm);
g_pModManager->LoadMods();
return SQRESULT_NULL;
}
diff --git a/primedev/scripts/client/scriptserverbrowser.cpp b/primedev/scripts/client/scriptserverbrowser.cpp
index 21324535..b946f7a9 100644
--- a/primedev/scripts/client/scriptserverbrowser.cpp
+++ b/primedev/scripts/client/scriptserverbrowser.cpp
@@ -8,6 +8,7 @@
ADD_SQFUNC("void", NSRequestServerList, "", "", ScriptContext::UI)
{
+ NOTE_UNUSED(sqvm);
g_pMasterServerManager->RequestServerList();
return SQRESULT_NULL;
}
@@ -32,6 +33,7 @@ ADD_SQFUNC("int", NSGetServerCount, "", "", ScriptContext::UI)
ADD_SQFUNC("void", NSClearRecievedServerList, "", "", ScriptContext::UI)
{
+ NOTE_UNUSED(sqvm);
g_pMasterServerManager->ClearServerList();
return SQRESULT_NULL;
}
@@ -114,6 +116,7 @@ ADD_SQFUNC("void", NSConnectToAuthedServer, "", "", ScriptContext::UI)
ADD_SQFUNC("void", NSTryAuthWithLocalServer, "", "", ScriptContext::UI)
{
+ NOTE_UNUSED(sqvm);
// do auth request
g_pMasterServerManager->AuthenticateWithOwnServer(g_pLocalPlayerUserID, g_pMasterServerManager->m_sOwnClientAuthToken);
@@ -122,6 +125,7 @@ ADD_SQFUNC("void", NSTryAuthWithLocalServer, "", "", ScriptContext::UI)
ADD_SQFUNC("void", NSCompleteAuthWithLocalServer, "", "", ScriptContext::UI)
{
+ NOTE_UNUSED(sqvm);
// literally just set serverfilter
// note: this assumes we have no authdata other than our own
if (g_pServerAuthentication->m_RemoteAuthenticationData.size())
diff --git a/primedev/scripts/scriptdatatables.cpp b/primedev/scripts/scriptdatatables.cpp
index 47c3a0f1..5e685b48 100644
--- a/primedev/scripts/scriptdatatables.cpp
+++ b/primedev/scripts/scriptdatatables.cpp
@@ -781,6 +781,7 @@ void ConCommand_dump_datatable(const CCommand& args)
void ConCommand_dump_datatables(const CCommand& args)
{
+ NOTE_UNUSED(args);
// likely not a comprehensive list, might be missing a couple?
static const std::vector<const char*> VANILLA_DATATABLE_PATHS = {
"datatable/burn_meter_rewards.rpak",