diff --git a/extern/angelscript_addons/scripthandle/scripthandle.cpp b/extern/angelscript_addons/scripthandle/scripthandle.cpp index 93f4fc6..e47b1fe 100644 --- a/extern/angelscript_addons/scripthandle/scripthandle.cpp +++ b/extern/angelscript_addons/scripthandle/scripthandle.cpp @@ -230,7 +230,7 @@ void CScriptHandle::ReleaseReferences(asIScriptEngine *) void RegisterScriptHandle_Native(asIScriptEngine *engine) { - int r; + [[maybe_unused]] int r; #if AS_CAN_USE_CPP11 // With C++11 it is possible to use asGetTypeTraits to automatically determine the flags that represent the C++ class @@ -332,7 +332,7 @@ void CScriptHandle_ReleaseReferences_Generic(asIScriptGeneric *gen) void RegisterScriptHandle_Generic(asIScriptEngine *engine) { - int r; + [[maybe_unused]] int r; r = engine->RegisterObjectType("ref", sizeof(CScriptHandle), asOBJ_VALUE | asOBJ_ASHANDLE | asOBJ_GC | asOBJ_APP_CLASS_CDAK); assert( r >= 0 ); r = engine->RegisterObjectBehaviour("ref", asBEHAVE_CONSTRUCT, "void f()", asFUNCTION(CScriptHandle_Construct_Generic), asCALL_GENERIC); assert( r >= 0 ); diff --git a/extern/angelscript_addons/scriptstdstring/scriptstdstring_utils.cpp b/extern/angelscript_addons/scriptstdstring/scriptstdstring_utils.cpp index 54662aa..7b8067f 100644 --- a/extern/angelscript_addons/scriptstdstring/scriptstdstring_utils.cpp +++ b/extern/angelscript_addons/scriptstdstring/scriptstdstring_utils.cpp @@ -112,7 +112,7 @@ static void StringJoin_Generic(asIScriptGeneric *gen) // The string type must have been registered first. void RegisterStdStringUtils(asIScriptEngine *engine) { - int r; + [[maybe_unused]] int r; if( strstr(asGetLibraryOptions(), "AS_MAX_PORTABILITY") ) {