diff --git a/AuraMethods.h b/AuraMethods.h index f9000ec..8ac2319 100644 --- a/AuraMethods.h +++ b/AuraMethods.h @@ -115,7 +115,6 @@ namespace LuaAura int Remove(lua_State* L, Aura* aura) { - int duration = Eluna::CHECKVAL(L, 2); #ifdef MANGOS aura->GetHolder()->RemoveAura(aura->GetEffIndex()); #else diff --git a/HookMgr.cpp b/HookMgr.cpp index d32e7b0..33f22f2 100644 --- a/HookMgr.cpp +++ b/HookMgr.cpp @@ -62,7 +62,6 @@ ENDCALL(); lua_State* L = sEluna->L; \ uint32 _LuaEvent = EVENT; \ int _LuaStackTop = lua_gettop(L); \ - EntryBind* _LuaBindMap = sEluna->BINDMAP; \ lua_rawgeti(L, LUA_REGISTRYINDEX, _Luabind); \ Eluna::Push(L, _LuaEvent); diff --git a/LuaEngine.cpp b/LuaEngine.cpp index 6bc9a5b..17ba5cc 100644 --- a/LuaEngine.cpp +++ b/LuaEngine.cpp @@ -130,7 +130,7 @@ void Eluna::GetScripts(std::string path, ScriptPaths& scripts) } ACE_DIRENT *directory = 0; - while (directory = dir.read()) + while ((directory = dir.read())) { // Skip the ".." and "." files. if (ACE::isdotdir(directory->d_name)) @@ -741,7 +741,7 @@ EventMgr::LuaEvent::~LuaEvent() luaL_unref(E.L, LUA_REGISTRYINDEX, funcRef); // Free lua function ref } -bool EventMgr::LuaEvent::Execute(uint64 time, uint32 diff) +bool EventMgr::LuaEvent::Execute(uint64 /*time*/, uint32 /*diff*/) { bool remove = (calls == 1); if (!remove)