Compile warnings fixes

This commit is contained in:
click
2011-05-27 14:45:44 +02:00
committed by Shauren
parent b533dfdca9
commit 2d1b3ccaa1
5 changed files with 9 additions and 9 deletions

View File

@@ -85,7 +85,7 @@ public:
}
}
void SetData(uint32 type, uint32 data)
void SetData(uint32 type, uint32 /*data*/)
{
switch(type)
{

View File

@@ -175,7 +175,7 @@ struct ManaVoidSelector : public std::unary_function<Unit*, bool>
class DelayedCastEvent : public BasicEvent
{
public:
DelayedCastEvent(Creature* trigger, uint32 spellId, uint64 originalCaster, uint32 despawnTime) : _trigger(trigger), _spellId(spellId), _originalCaster(originalCaster), _despawnTime(despawnTime)
DelayedCastEvent(Creature* trigger, uint32 spellId, uint64 originalCaster, uint32 despawnTime) : _trigger(trigger), _originalCaster(originalCaster), _spellId(spellId), _despawnTime(despawnTime)
{
}
@@ -879,12 +879,12 @@ class npc_blistering_zombie : public CreatureScript
{
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
DoCast(me, SPELL_ACID_BURST, true);
}
void UpdateAI(uint32 const diff)
void UpdateAI(uint32 const /*diff*/)
{
if (!UpdateVictim())
return;
@@ -1173,7 +1173,7 @@ class spell_dreamwalker_summon_suppresser : public SpellScriptLoader
{
PrepareAuraScript(spell_dreamwalker_summon_suppresser_AuraScript);
void PeriodicTick(AuraEffect const* aurEff)
void PeriodicTick(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();
Unit* caster = GetCaster();

View File

@@ -174,7 +174,7 @@ public:
void Reset()
{
uint64 summonerGUID = 0;
Player* player = NULL;
if (me->isSummon())
if (Unit* summoner = me->ToTempSummon()->GetSummoner())
if (summoner->GetTypeId() == TYPEID_PLAYER)