From 145848c76c03e934bb5853381aa4228802500b87 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 11 Feb 2022 12:44:15 +0100 Subject: [PATCH] More ununused parameters in addons --- add_on/scriptdictionary/scriptdictionary.cpp | 2 ++ add_on/scripthandle/scripthandle.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/add_on/scriptdictionary/scriptdictionary.cpp b/add_on/scriptdictionary/scriptdictionary.cpp index 2ae5305..8de2e41 100644 --- a/add_on/scriptdictionary/scriptdictionary.cpp +++ b/add_on/scriptdictionary/scriptdictionary.cpp @@ -1140,6 +1140,7 @@ void RegisterScriptDictionary_Native(asIScriptEngine *engine) // Same as deleteAll r = engine->RegisterObjectMethod("dictionary", "void clear()", asMETHOD(CScriptDictionary,DeleteAll), asCALL_THISCALL); assert( r >= 0 ); #endif + (void)r; // Cache some things the dictionary will need at runtime SDictionaryCache::Setup(engine); @@ -1208,6 +1209,7 @@ void RegisterScriptDictionary_Generic(asIScriptEngine *engine) r = engine->RegisterObjectBehaviour("dictionary", asBEHAVE_ENUMREFS, "void f(int&in)", asFUNCTION(ScriptDictionaryEnumReferences_Generic), asCALL_GENERIC); assert( r >= 0 ); r = engine->RegisterObjectBehaviour("dictionary", asBEHAVE_RELEASEREFS, "void f(int&in)", asFUNCTION(ScriptDictionaryReleaseAllReferences_Generic), asCALL_GENERIC); assert( r >= 0 ); + (void)r; // Cache some things the dictionary will need at runtime SDictionaryCache::Setup(engine); } diff --git a/add_on/scripthandle/scripthandle.cpp b/add_on/scripthandle/scripthandle.cpp index 29e9d5b..da95e36 100644 --- a/add_on/scripthandle/scripthandle.cpp +++ b/add_on/scripthandle/scripthandle.cpp @@ -250,6 +250,7 @@ void RegisterScriptHandle_Native(asIScriptEngine *engine) r = engine->RegisterObjectMethod("ref", "ref &opHndlAssign(const ?&in)", asMETHOD(CScriptHandle, Assign), asCALL_THISCALL); assert( r >= 0 ); r = engine->RegisterObjectMethod("ref", "bool opEquals(const ref &in) const", asMETHODPR(CScriptHandle, operator==, (const CScriptHandle &) const, bool), asCALL_THISCALL); assert( r >= 0 ); r = engine->RegisterObjectMethod("ref", "bool opEquals(const ?&in) const", asMETHODPR(CScriptHandle, Equals, (void*, int) const, bool), asCALL_THISCALL); assert( r >= 0 ); + (void)r; } void CScriptHandle_Construct_Generic(asIScriptGeneric *gen) @@ -347,6 +348,7 @@ void RegisterScriptHandle_Generic(asIScriptEngine *engine) r = engine->RegisterObjectMethod("ref", "ref &opHndlAssign(const ?&in)", asFUNCTION(CScriptHandle_AssignVar_Generic), asCALL_GENERIC); assert( r >= 0 ); r = engine->RegisterObjectMethod("ref", "bool opEquals(const ref &in) const", asFUNCTION(CScriptHandle_Equals_Generic), asCALL_GENERIC); assert( r >= 0 ); r = engine->RegisterObjectMethod("ref", "bool opEquals(const ?&in) const", asFUNCTION(CScriptHandle_EqualsVar_Generic), asCALL_GENERIC); assert( r >= 0 ); + (void)r; } void RegisterScriptHandle(asIScriptEngine *engine)