Adds maybe_unused to several addon scripts

This commit is contained in:
2022-04-10 12:08:18 +02:00
parent 6734aa44ec
commit cc5cd3d238
9 changed files with 15 additions and 15 deletions

View File

@@ -141,7 +141,7 @@ void RegisterScriptAny(asIScriptEngine *engine)
void RegisterScriptAny_Native(asIScriptEngine *engine)
{
int r;
[[maybe_unused]] int r;
r = engine->RegisterObjectType("any", sizeof(CScriptAny), asOBJ_REF | asOBJ_GC); assert( r >= 0 );
// We'll use the generic interface for the constructor as we need the engine pointer
@@ -170,7 +170,7 @@ void RegisterScriptAny_Native(asIScriptEngine *engine)
void RegisterScriptAny_Generic(asIScriptEngine *engine)
{
int r;
[[maybe_unused]] int r;
r = engine->RegisterObjectType("any", sizeof(CScriptAny), asOBJ_REF | asOBJ_GC); assert( r >= 0 );
// We'll use the generic interface for the constructor as we need the engine pointer