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

@@ -2474,6 +2474,7 @@ namespace LuaPlayer
*/
int LeaveBattleground(lua_State* L, Player* player)
{
(void)L; // ensure that the variable is referenced in order to pass compiler checks
#ifndef AZEROTHCORE
bool teleToEntryPoint = Eluna::CHECKVAL<bool>(L, 2, true);
player->LeaveBattleground(teleToEntryPoint);
@@ -3493,6 +3494,7 @@ namespace LuaPlayer
{
uint32 category = Eluna::CHECKVAL<uint32>(L, 2);
bool update = Eluna::CHECKVAL<bool>(L, 3, true);
(void)update; // ensure that the variable is referenced in order to pass compiler checks
#ifdef TRINITY
player->GetSpellHistory()->ResetCooldowns([category](SpellHistory::CooldownStorageType::iterator itr) -> bool