Eluna fix linux warnings

This commit is contained in:
Rochet2
2014-06-02 12:13:21 +03:00
committed by Foereaper
parent 16e7a71980
commit 9a1f8c7884
3 changed files with 2 additions and 4 deletions

View File

@@ -115,7 +115,6 @@ namespace LuaAura
int Remove(lua_State* L, Aura* aura)
{
int duration = Eluna::CHECKVAL<int>(L, 2);
#ifdef MANGOS
aura->GetHolder()->RemoveAura(aura->GetEffIndex());
#else

View File

@@ -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);

View File

@@ -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)