Adds maybe_unused to several addon scripts

This commit is contained in:
Deukhoofd committed 2022-04-10 12:11:05 +02:00
1 parent 6734aa44ec
commit cc5cd3d238
9 files changed
+15 -15

No files matched your search

+2 -2
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);