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

@@ -1068,7 +1068,7 @@ void RegisterScriptDictionary(asIScriptEngine *engine)
void RegisterScriptDictionary_Native(asIScriptEngine *engine)
{
int r;
[[maybe_unused]] int r;
// The array<string> type must be available
assert( engine->GetTypeInfoByDecl("array<string>") );
@@ -1147,7 +1147,7 @@ void RegisterScriptDictionary_Native(asIScriptEngine *engine)
void RegisterScriptDictionary_Generic(asIScriptEngine *engine)
{
int r;
[[maybe_unused]] int r;
// Register the cleanup callback for the object type cache
engine->SetEngineUserDataCleanupCallback(SDictionaryCache::Cleanup, DICTIONARY_CACHE);