From e2191039d5b4fbecfdb7af0ec21f8e55ad8ef816 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 11 Feb 2022 14:08:20 +0100 Subject: [PATCH] Fixes unused variables --- add_on/scripthelper/scripthelper.cpp | 1 + add_on/scriptmath/scriptmath.cpp | 2 ++ 2 files changed, 3 insertions(+) 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)