Fixes unused variables
This commit is contained in:
parent
c1aea15254
commit
e2191039d5
|
@ -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("void throw(const string &in)", asFUNCTION(ScriptThrow), asCALL_CDECL); assert(r >= 0);
|
||||||
r = engine->RegisterGlobalFunction("string getExceptionInfo()", asFUNCTION(ScriptGetExceptionInfo), asCALL_CDECL); assert(r >= 0);
|
r = engine->RegisterGlobalFunction("string getExceptionInfo()", asFUNCTION(ScriptGetExceptionInfo), asCALL_CDECL); assert(r >= 0);
|
||||||
|
(void)r;
|
||||||
}
|
}
|
||||||
|
|
||||||
END_AS_NAMESPACE
|
END_AS_NAMESPACE
|
||||||
|
|
|
@ -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 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 );
|
r = engine->RegisterGlobalFunction("double fraction(double)", asFUNCTIONPR(fraction, (double), double), asCALL_CDECL); assert( r >= 0 );
|
||||||
#endif
|
#endif
|
||||||
|
(void)r;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if AS_USE_FLOAT
|
#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 floor(double)", asFUNCTION(floor_generic), asCALL_GENERIC); assert( r >= 0 );
|
||||||
r = engine->RegisterGlobalFunction("double fraction(double)", asFUNCTION(fraction_generic), asCALL_GENERIC); assert( r >= 0 );
|
r = engine->RegisterGlobalFunction("double fraction(double)", asFUNCTION(fraction_generic), asCALL_GENERIC); assert( r >= 0 );
|
||||||
#endif
|
#endif
|
||||||
|
(void)r;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RegisterScriptMath(asIScriptEngine *engine)
|
void RegisterScriptMath(asIScriptEngine *engine)
|
||||||
|
|
Loading…
Reference in New Issue