Core: Fix some warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-11-22 10:10:46 +01:00
parent ea9e88a48c
commit 6b5ff1ca25
5 changed files with 9 additions and 7 deletions
@@ -582,10 +582,12 @@ public:
uint32 lootId = 0;
if (!*args)
{
if (WorldObject * obj = handler->getSelectedObject())
entry = obj->GetEntry();
else
entry = atoi((char*)args);
}
GameObjectInfo const* goinfo = sObjectMgr.GetGameObjectInfo(entry);
+1 -1
View File
@@ -164,7 +164,7 @@ public:
}
//reload commands
static bool HandleReloadGMTicketsCommand(ChatHandler* handler, const char* /*args*/)
static bool HandleReloadGMTicketsCommand(ChatHandler* /*handler*/, const char* /*args*/)
{
sTicketMgr.LoadGMTickets();
return true;
@@ -375,7 +375,7 @@ class npc_bone_spike : public CreatureScript
events.ScheduleEvent(EVENT_FAIL_BONED, 8000);
}
void UpdateAI(const uint32 diff)
void UpdateAI(const uint32 /*diff*/)
{
if (!trappedGUID)
return;
+1 -1
View File
@@ -500,7 +500,7 @@ public:
{
if (pPlayer->GetQuestStatus(QUEST_THE_PERFECT_SPIES) == QUEST_STATUS_INCOMPLETE)
{
if (Creature* target = pPlayer->FindNearestCreature(NPC_VANIRAS_SENTRY_TOTEM, 10.0f))
if (pPlayer->FindNearestCreature(NPC_VANIRAS_SENTRY_TOTEM, 10.0f))
return false;
else
pPlayer->SendEquipError(EQUIP_ERR_OUT_OF_RANGE, pItem, NULL);
@@ -155,7 +155,7 @@ bool MySQLConnection::Execute(const char* sql)
return false;
{
uint32 _s;
uint32 _s = 0;
if (sLog.GetSQLDriverQueryLogging())
_s = getMSTime();
@@ -191,7 +191,7 @@ bool MySQLConnection::Execute(PreparedStatement* stmt)
MYSQL_STMT* msql_STMT = m_mStmt->GetSTMT();
MYSQL_BIND* msql_BIND = m_mStmt->GetBind();
uint32 _s;
uint32 _s = 0;
if (sLog.GetSQLDriverQueryLogging())
_s = getMSTime();
@@ -237,7 +237,7 @@ bool MySQLConnection::_Query(PreparedStatement* stmt, MYSQL_RES **pResult, uint6
MYSQL_STMT* msql_STMT = m_mStmt->GetSTMT();
MYSQL_BIND* msql_BIND = m_mStmt->GetBind();
uint32 _s;
uint32 _s = 0;
if (sLog.GetSQLDriverQueryLogging())
_s = getMSTime();
@@ -294,7 +294,7 @@ bool MySQLConnection::_Query(const char *sql, MYSQL_RES **pResult, MYSQL_FIELD *
return false;
{
uint32 _s;
uint32 _s = 0;
if (sLog.GetSQLDriverQueryLogging())
_s = getMSTime();