mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
fix some compiler warnings about unused variables
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user