diff --git a/add_on/scripthelper/scripthelper.cpp b/add_on/scripthelper/scripthelper.cpp index 4af4fde..5e90ece 100644 --- a/add_on/scripthelper/scripthelper.cpp +++ b/add_on/scripthelper/scripthelper.cpp @@ -982,6 +982,7 @@ void RegisterExceptionRoutines(asIScriptEngine *engine) r = engine->RegisterGlobalFunction("void throw(const string &in)", asFUNCTION(ScriptThrow), asCALL_CDECL); assert(r >= 0); r = engine->RegisterGlobalFunction("string getExceptionInfo()", asFUNCTION(ScriptGetExceptionInfo), asCALL_CDECL); assert(r >= 0); + (void)r; } END_AS_NAMESPACE diff --git a/add_on/scriptmath/scriptmath.cpp b/add_on/scriptmath/scriptmath.cpp index 6d9a62c..5814d73 100644 --- a/add_on/scriptmath/scriptmath.cpp +++ b/add_on/scriptmath/scriptmath.cpp @@ -214,6 +214,7 @@ void RegisterScriptMath_Native(asIScriptEngine *engine) r = engine->RegisterGlobalFunction("double floor(double)", asFUNCTIONPR(floor, (double), double), asCALL_CDECL); assert( r >= 0 ); r = engine->RegisterGlobalFunction("double fraction(double)", asFUNCTIONPR(fraction, (double), double), asCALL_CDECL); assert( r >= 0 ); #endif + (void)r; } #if AS_USE_FLOAT @@ -350,6 +351,7 @@ void RegisterScriptMath_Generic(asIScriptEngine *engine) r = engine->RegisterGlobalFunction("double floor(double)", asFUNCTION(floor_generic), asCALL_GENERIC); assert( r >= 0 ); r = engine->RegisterGlobalFunction("double fraction(double)", asFUNCTION(fraction_generic), asCALL_GENERIC); assert( r >= 0 ); #endif + (void)r; } void RegisterScriptMath(asIScriptEngine *engine)