The angelscript addons really need to check their unused variables.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
639d7e977f
commit
a8e71ddd0b
|
@ -230,7 +230,7 @@ void CScriptHandle::ReleaseReferences(asIScriptEngine *)
|
||||||
|
|
||||||
void RegisterScriptHandle_Native(asIScriptEngine *engine)
|
void RegisterScriptHandle_Native(asIScriptEngine *engine)
|
||||||
{
|
{
|
||||||
int r;
|
[[maybe_unused]] int r;
|
||||||
|
|
||||||
#if AS_CAN_USE_CPP11
|
#if AS_CAN_USE_CPP11
|
||||||
// With C++11 it is possible to use asGetTypeTraits to automatically determine the flags that represent the C++ class
|
// 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)
|
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->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 );
|
r = engine->RegisterObjectBehaviour("ref", asBEHAVE_CONSTRUCT, "void f()", asFUNCTION(CScriptHandle_Construct_Generic), asCALL_GENERIC); assert( r >= 0 );
|
||||||
|
|
|
@ -112,7 +112,7 @@ static void StringJoin_Generic(asIScriptGeneric *gen)
|
||||||
// The string type must have been registered first.
|
// The string type must have been registered first.
|
||||||
void RegisterStdStringUtils(asIScriptEngine *engine)
|
void RegisterStdStringUtils(asIScriptEngine *engine)
|
||||||
{
|
{
|
||||||
int r;
|
[[maybe_unused]] int r;
|
||||||
|
|
||||||
if( strstr(asGetLibraryOptions(), "AS_MAX_PORTABILITY") )
|
if( strstr(asGetLibraryOptions(), "AS_MAX_PORTABILITY") )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue