Fixed all unused-parameters warnings

issue #121

used clang-tidy to achieve this
This commit is contained in:
Yehonal
2017-09-18 14:23:26 +02:00
parent aa87ec685b
commit 2b2e299ccc
229 changed files with 643 additions and 643 deletions

View File

@@ -91,7 +91,7 @@ class boss_drakkari_colossus : public CreatureScript
{
}
void MoveInLineOfSight(Unit* who)
void MoveInLineOfSight(Unit* /*who*/)
{
}
@@ -172,7 +172,7 @@ class boss_drakkari_colossus : public CreatureScript
}
}
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType, SpellSchoolMask)
void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType, SpellSchoolMask)
{
if (damage >= me->GetHealth())
damage = 0;

View File

@@ -120,7 +120,7 @@ class boss_gal_darah : public CreatureScript
summon->DespawnOrUnsummon(despawnTime);
}
uint32 GetData(uint32 type) const
uint32 GetData(uint32 /*type*/) const
{
return impaledList.size();
}

View File

@@ -80,7 +80,7 @@ class boss_moorabi : public CreatureScript
events.ScheduleEvent(EVENT_TRANSFORMATION, 12000);
}
void SpellHitTarget(Unit* caster, const SpellInfo* spellInfo)
void SpellHitTarget(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_TRANSFORMATION)
{
@@ -164,7 +164,7 @@ class spell_moorabi_mojo_frenzy : public SpellScriptLoader
{
PrepareAuraScript(spell_moorabi_mojo_frenzy_AuraScript);
void HandlePeriodic(AuraEffect const* aurEff)
void HandlePeriodic(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();

View File

@@ -194,7 +194,7 @@ class spell_sladran_grip_of_sladran : public SpellScriptLoader
{
PrepareAuraScript(spell_sladran_grip_of_sladran_AuraScript);
void HandlePeriodic(AuraEffect const* aurEff)
void HandlePeriodic(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();
if (GetStackAmount() >= 5)