Skip to content

Commit f05ec83

Browse files
committed
[2843] Fix unused parameter warnings
1 parent a2c53e4 commit f05ec83

File tree

320 files changed

+760
-760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

320 files changed

+760
-760
lines changed

base/escort_ai.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void npc_escortAI::UpdateAI(const uint32 uiDiff)
345345
UpdateEscortAI(uiDiff);
346346
}
347347

348-
void npc_escortAI::UpdateEscortAI(const uint32 uiDiff)
348+
void npc_escortAI::UpdateEscortAI(const uint32 /*uiDiff*/)
349349
{
350350
// Check if we have a current target
351351
if (!m_creature->SelectHostileTarget() || !m_creature->getVictim())

base/follower_ai.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void FollowerAI::MoveInLineOfSight(Unit* pWho)
118118
}
119119
}
120120

121-
void FollowerAI::JustDied(Unit* pKiller)
121+
void FollowerAI::JustDied(Unit* /*pKiller*/)
122122
{
123123
if (!HasFollowState(STATE_FOLLOW_INPROGRESS) || !m_leaderGuid || !m_pQuestForFollow)
124124
return;
@@ -244,7 +244,7 @@ void FollowerAI::UpdateAI(const uint32 uiDiff)
244244
UpdateFollowerAI(uiDiff);
245245
}
246246

247-
void FollowerAI::UpdateFollowerAI(const uint32 uiDiff)
247+
void FollowerAI::UpdateFollowerAI(const uint32 /*uiDiff*/)
248248
{
249249
if (!m_creature->SelectHostileTarget() || !m_creature->getVictim())
250250
return;

base/pet_ai.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void ScriptedPetAI::ResetPetCombat()
7979
Reset();
8080
}
8181

82-
void ScriptedPetAI::UpdatePetAI(const uint32 uiDiff)
82+
void ScriptedPetAI::UpdatePetAI(const uint32 /*uiDiff*/)
8383
{
8484
DoMeleeAttackIfReady();
8585
}

base/pet_ai.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MANGOS_DLL_DECL ScriptedPetAI : public CreatureAI
3030

3131
virtual void UpdatePetAI(const uint32 uiDiff); // while in combat
3232

33-
virtual void UpdatePetOOCAI(const uint32 uiDiff) {} // when not in combat
33+
virtual void UpdatePetOOCAI(const uint32 /*uiDiff*/) {} // when not in combat
3434

3535
protected:
3636
void ResetPetCombat();

include/sc_creature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void ScriptedAI::EnterCombat(Unit* pEnemy)
102102
* Handle (if required) melee attack with DoMeleeAttackIfReady()
103103
* This is usally overwritten to support timers for ie spells
104104
*/
105-
void ScriptedAI::UpdateAI(const uint32 uiDiff)
105+
void ScriptedAI::UpdateAI(const uint32 /*uiDiff*/)
106106
{
107107
// Check if we have a current target
108108
if (!m_creature->SelectHostileTarget() || !m_creature->getVictim())

scripts/battlegrounds/battleground.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct MANGOS_DLL_DECL npc_spirit_guideAI : public ScriptedAI
5555

5656
void Reset() override {}
5757

58-
void UpdateAI(const uint32 uiDiff) override
58+
void UpdateAI(const uint32 /*uiDiff*/) override
5959
{
6060
// auto cast the whole time this spell
6161
if (!m_creature->GetCurrentSpell(CURRENT_CHANNELED_SPELL))
@@ -91,7 +91,7 @@ struct MANGOS_DLL_DECL npc_spirit_guideAI : public ScriptedAI
9191
}
9292
};
9393

94-
bool GossipHello_npc_spirit_guide(Player* pPlayer, Creature* pCreature)
94+
bool GossipHello_npc_spirit_guide(Player* pPlayer, Creature* /*pCreature*/)
9595
{
9696
pPlayer->CastSpell(pPlayer, SPELL_WAITING_TO_RESURRECT, true);
9797
return true;

scripts/eastern_kingdoms/blackrock_depths/blackrock_depths.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ EndContentData */
4141
## go_shadowforge_brazier
4242
######*/
4343

44-
bool GOUse_go_shadowforge_brazier(Player* pPlayer, GameObject* pGo)
44+
bool GOUse_go_shadowforge_brazier(Player* /*pPlayer*/, GameObject* pGo)
4545
{
4646
if (ScriptedInstance* pInstance = (ScriptedInstance*)pGo->GetInstanceData())
4747
{
@@ -57,7 +57,7 @@ bool GOUse_go_shadowforge_brazier(Player* pPlayer, GameObject* pGo)
5757
## go_relic_coffer_door
5858
######*/
5959

60-
bool GOUse_go_relic_coffer_door(Player* pPlayer, GameObject* pGo)
60+
bool GOUse_go_relic_coffer_door(Player* /*pPlayer*/, GameObject* pGo)
6161
{
6262
if (ScriptedInstance* pInstance = (ScriptedInstance*)pGo->GetInstanceData())
6363
{
@@ -230,7 +230,7 @@ struct MANGOS_DLL_DECL npc_grimstoneAI : public npc_escortAI
230230
}
231231
}
232232

233-
void SummonedCreatureJustDied(Creature* pSummoned) override
233+
void SummonedCreatureJustDied(Creature* /*pSummoned*/) override
234234
{
235235
++m_uiMobDeadCount;
236236

@@ -436,7 +436,7 @@ CreatureAI* GetAI_npc_grimstone(Creature* pCreature)
436436
return new npc_grimstoneAI(pCreature);
437437
}
438438

439-
bool EffectDummyCreature_spell_banner_of_provocation(Unit* pCaster, uint32 uiSpellId, SpellEffectIndex uiEffIndex, Creature* pCreatureTarget)
439+
bool EffectDummyCreature_spell_banner_of_provocation(Unit* /*pCaster*/, uint32 uiSpellId, SpellEffectIndex uiEffIndex, Creature* pCreatureTarget)
440440
{
441441
if (uiSpellId == SPELL_SUMMON_THELRIN_DND && uiEffIndex != EFFECT_INDEX_0)
442442
{
@@ -489,7 +489,7 @@ bool GossipHello_npc_kharan_mighthammer(Player* pPlayer, Creature* pCreature)
489489
return true;
490490
}
491491

492-
bool GossipSelect_npc_kharan_mighthammer(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
492+
bool GossipSelect_npc_kharan_mighthammer(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
493493
{
494494
switch (uiAction)
495495
{
@@ -649,7 +649,7 @@ CreatureAI* GetAI_npc_rocknot(Creature* pCreature)
649649
return new npc_rocknotAI(pCreature);
650650
}
651651

652-
bool QuestRewarded_npc_rocknot(Player* pPlayer, Creature* pCreature, Quest const* pQuest)
652+
bool QuestRewarded_npc_rocknot(Player* /*pPlayer*/, Creature* pCreature, Quest const* pQuest)
653653
{
654654
ScriptedInstance* pInstance = (ScriptedInstance*)pCreature->GetInstanceData();
655655

@@ -891,7 +891,7 @@ struct MANGOS_DLL_DECL npc_marshal_windsorAI : public npc_escortAI
891891
}
892892
}
893893

894-
void UpdateEscortAI(const uint32 uiDiff) override
894+
void UpdateEscortAI(const uint32 /*uiDiff*/) override
895895
{
896896
// Handle escort resume events
897897
if (m_pInstance && m_pInstance->GetData(TYPE_QUEST_JAIL_BREAK) == SPECIAL)
@@ -953,7 +953,7 @@ bool GossipHello_npc_dughal_stormwing(Player* pPlayer, Creature* pCreature)
953953
return true;
954954
}
955955

956-
bool GossipSelect_npc_dughal_stormwing(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
956+
bool GossipSelect_npc_dughal_stormwing(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
957957
{
958958
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
959959
{
@@ -987,7 +987,7 @@ bool GossipHello_npc_tobias_seecher(Player* pPlayer, Creature* pCreature)
987987
return true;
988988
}
989989

990-
bool GossipSelect_npc_tobias_seecher(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
990+
bool GossipSelect_npc_tobias_seecher(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
991991
{
992992
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
993993
{
@@ -1030,7 +1030,7 @@ bool GossipHello_boss_doomrel(Player* pPlayer, Creature* pCreature)
10301030
return true;
10311031
}
10321032

1033-
bool GossipSelect_boss_doomrel(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
1033+
bool GossipSelect_boss_doomrel(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
10341034
{
10351035
switch (uiAction)
10361036
{

scripts/eastern_kingdoms/blackrock_depths/boss_ambassador_flamelash.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct MANGOS_DLL_DECL boss_ambassador_flamelashAI : public ScriptedAI
5353
m_creature->SummonCreature(NPC_BURNING_SPIRIT, fX, fY, fZ, m_creature->GetAngle(fX, fY) + M_PI_F, TEMPSUMMON_TIMED_OOC_OR_DEAD_DESPAWN, 60000);
5454
}
5555

56-
void Aggro(Unit* pWho) override
56+
void Aggro(Unit* /*pWho*/) override
5757
{
5858
DoCastSpellIfCan(m_creature, SPELL_FIREBLAST);
5959
}
@@ -63,7 +63,7 @@ struct MANGOS_DLL_DECL boss_ambassador_flamelashAI : public ScriptedAI
6363
pSummoned->GetMotionMaster()->MovePoint(1, m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ());
6464
}
6565

66-
void SummonedMovementInform(Creature* pSummoned, uint32 uiMotionType, uint32 uiPointId) override
66+
void SummonedMovementInform(Creature* pSummoned, uint32 /*uiMotionType*/, uint32 uiPointId) override
6767
{
6868
if (uiPointId != 1)
6969
return;
@@ -94,7 +94,7 @@ struct MANGOS_DLL_DECL boss_ambassador_flamelashAI : public ScriptedAI
9494
}
9595
};
9696

97-
bool EffectDummyCreature_spell_boss_ambassador_flamelash(Unit* pCaster, uint32 uiSpellId, SpellEffectIndex uiEffIndex, Creature* pCreatureTarget)
97+
bool EffectDummyCreature_spell_boss_ambassador_flamelash(Unit* /*pCaster*/, uint32 uiSpellId, SpellEffectIndex uiEffIndex, Creature* pCreatureTarget)
9898
{
9999
if (uiSpellId == SPELL_BURNING_SPIRIT && uiEffIndex == EFFECT_INDEX_1)
100100
{

scripts/eastern_kingdoms/blackrock_depths/boss_coren_direbrew.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct MANGOS_DLL_DECL boss_coren_direbrewAI : public ScriptedAI
7474
m_uiPhase = 0;
7575
}
7676

77-
void Aggro(Unit* pWho) override
77+
void Aggro(Unit* /*pWho*/) override
7878
{
7979
// Spawn 3 minions on aggro
8080
for (uint8 i = 0; i < MAX_DIREBREW_MINIONS; ++i)

scripts/eastern_kingdoms/blackrock_depths/boss_emperor_dagran_thaurissan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ struct MANGOS_DLL_DECL boss_emperor_dagran_thaurissanAI : public ScriptedAI
5555
// m_uiCounter = 0;
5656
}
5757

58-
void Aggro(Unit* pWho) override
58+
void Aggro(Unit* /*pWho*/) override
5959
{
6060
DoScriptText(SAY_AGGRO, m_creature);
6161
m_creature->CallForHelp(VISIBLE_RANGE);
6262
}
6363

64-
void JustDied(Unit* pVictim) override
64+
void JustDied(Unit* /*pVictim*/) override
6565
{
6666
if (!m_pInstance)
6767
return;

0 commit comments

Comments
 (0)