fix wanrings

This commit is contained in:
ineed bots
2025-09-20 20:50:37 -06:00
parent d417f41992
commit afbbdd2d11
2 changed files with 3 additions and 3 deletions

View File

@@ -392,7 +392,7 @@ namespace game
return ((char*)refString - (char*)game::gScrMemTreePub[inst].mt_buffer) / MT_NODE_SIZE;
}
RefString* GetRefString_0(scriptInstance_t inst, const char* str)
RefString* GetRefString_0([[maybe_unused]]scriptInstance_t inst, const char* str)
{
assert(str >= (char*)game::gScrMemTreePub[inst].mt_buffer && str < (char*)(game::gScrMemTreePub[inst].mt_buffer + MT_SIZE));

View File

@@ -995,7 +995,7 @@ namespace game
return game::gScrVarGlob[inst].parentVariables[startLocalId + 1].w.status >> 8;
}
const char* Scr_GetStackThreadPos(scriptInstance_t inst, unsigned int, VariableStackBuffer*, bool)
const char* Scr_GetStackThreadPos([[maybe_unused]]scriptInstance_t inst, unsigned int, VariableStackBuffer*, bool)
{
assert(game::gScrVarPub[inst].developer);
@@ -1198,7 +1198,7 @@ namespace game
}
}
unsigned int GetInternalVariableIndex(scriptInstance_t inst, unsigned int unsignedValue)
unsigned int GetInternalVariableIndex([[maybe_unused]]scriptInstance_t inst, unsigned int unsignedValue)
{
assert(game::IsValidArrayIndex(inst, unsignedValue));
return (unsignedValue + 0x800000) & 0xFFFFFF;