The angelscript addons really need to check their unused variables.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-03-27 23:22:10 +01:00
parent 639d7e977f
commit a8e71ddd0b
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 3 additions and 3 deletions

View File

@ -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 );

View File

@ -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") )
{