fix some compiler warnings about unused variables

This commit is contained in:
Stoabrogga
2019-04-03 09:17:24 +00:00
parent adf722a181
commit 6f28bd9c64
3 changed files with 5 additions and 0 deletions

View File

@@ -1494,6 +1494,7 @@ namespace LuaUnit
uint32 type = Eluna::CHECKVAL<uint32>(L, 2);
float rate = Eluna::CHECKVAL<float>(L, 3);
bool forced = Eluna::CHECKVAL<bool>(L, 4, false);
(void)forced; // ensure that the variable is referenced in order to pass compiler checks
if (type >= MAX_MOVE_TYPE)
return luaL_argerror(L, 2, "valid UnitMoveType expected");
#if defined TRINITY || AZEROTHCORE
@@ -2276,6 +2277,7 @@ namespace LuaUnit
{
const char* msg = Eluna::CHECKVAL<const char*>(L, 2);
uint32 lang = Eluna::CHECKVAL<uint32>(L, 3);
(void)lang; // ensure that the variable is referenced in order to pass compiler checks
Player* receiver = Eluna::CHECKOBJ<Player>(L, 4);
bool bossWhisper = Eluna::CHECKVAL<bool>(L, 5, false);
if (std::string(msg).length() > 0)