Skip to content

Commit

Permalink
Another round of GCC/Clang 'unused parameter' compiler warning fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-at-wow authored and killerwife committed May 7, 2023
1 parent b9691f3 commit 46a0597
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/game/AI/BaseAI/UnitAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ class UnitAI : public CombatActions
// member of the group got killed
virtual void CreatureGroupMemberDied(Unit* /*killed*/) {}

virtual void RequestFollow(Unit* followee) {}
virtual void RelinquishFollow(ObjectGuid follower) {}
virtual void RequestFollow(Unit* /*followee*/) {}
virtual void RelinquishFollow(ObjectGuid /*follower*/) {}

protected:
virtual std::string GetAIName() { return "UnitAI"; }
Expand Down
2 changes: 1 addition & 1 deletion src/game/AI/ScriptDevAI/scripts/kalimdor/desolace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ struct npc_cork_gizeltonAI : public npc_escortAI
}


void CreatureGroupMemberDied(Unit* killed)
void CreatureGroupMemberDied(Unit* /*killed*/)
{
StatusFailed = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/game/Entities/Object.h
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ class WorldObject : public Object
bool IsPositionValid() const;
void UpdateGroundPositionZ(float x, float y, float& z) const;
virtual void UpdateAllowedPositionZ(float x, float y, float& z, Map* atMap = nullptr) const;
virtual void AdjustZForCollision(float x, float y, float& z, float halfHeight) const {}
virtual void AdjustZForCollision(float /*x*/, float /*y*/, float& /*z*/, float /*halfHeight*/) const {}

void MovePositionToFirstCollision(Position &pos, float dist, float angle);
void GetFirstCollisionPosition(Position&pos, float dist, float angle)
Expand Down
2 changes: 1 addition & 1 deletion src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8813,7 +8813,7 @@ void Unit::IncrDiminishing(DiminishingGroup group, bool pvp)
m_Diminishing.push_back(DiminishingReturn(group, GetMap()->GetCurrentMSTime(), DIMINISHING_LEVEL_2));
}

void Unit::ApplyDiminishingToDuration(DiminishingGroup group, int32& duration, Unit* caster, DiminishingLevels Level, bool isReflected, SpellEntry const* spellInfo, bool hasAuraScript)
void Unit::ApplyDiminishingToDuration(DiminishingGroup group, int32& duration, Unit* caster, DiminishingLevels Level, bool isReflected, SpellEntry const* /*spellInfo*/, bool hasAuraScript)
{
if (duration == -1 || group == DIMINISHING_NONE || (!isReflected && caster->CanAssist(this)))
return;
Expand Down
2 changes: 1 addition & 1 deletion src/game/MotionGenerators/WaypointMovementGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ bool WaypointMovementGenerator<Creature>::SetNextWaypoint(uint32 pointId)
return true;
}

void LinearWPMovementGenerator<Creature>::SwitchToNextNode(Creature& creature, WaypointPath::const_iterator& nodeItr)
void LinearWPMovementGenerator<Creature>::SwitchToNextNode(Creature& /*creature*/, WaypointPath::const_iterator& nodeItr)
{
// switch to next node
if (!m_driveWayBack)
Expand Down
2 changes: 1 addition & 1 deletion src/game/Spells/Scripts/SpellScript.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct SpellScript
// called at end of Spell::CheckCast - strict is true in Spell::Prepare
virtual SpellCastResult OnCheckCast(Spell* /*spell*/, bool /*strict*/) const { return SPELL_CAST_OK; }
// called on Spell::SendCastResult - for overriding generic errors
virtual void OnSpellCastResultOverride(SpellCastResult& result, uint32& param1, uint32& param2) const {}
virtual void OnSpellCastResultOverride(SpellCastResult& /*result*/, uint32& /*param1*/, uint32& /*param2*/) const {}
// called before effect execution
virtual void OnEffectExecute(Spell* /*spell*/, SpellEffectIndex /*effIdx*/) const {}
// called in targeting to determine radius for spell
Expand Down

0 comments on commit 46a0597

Please sign in to comment.