Fix Linux compile warnings

This commit is contained in:
郑佩茹
2022-09-13 20:44:23 -06:00
parent ce1cd0b66d
commit 303a2cb94c
5 changed files with 8 additions and 8 deletions

View File

@@ -362,8 +362,8 @@ private:
{
if (item->Quality != ITEM_QUALITY_EPIC) // Non-endgame gear is okay
return;
if ((hasPassedProgression(player, PROGRESSION_NAXX40) && item->RequiredLevel <= 60) ||
hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && item->RequiredLevel <=70)
if ((hasPassedProgression(player, PROGRESSION_NAXX40) && (item->RequiredLevel <= 60)) ||
hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (item->RequiredLevel <=70))
{
computedAdjustment -= (100.0 * previousGearTuning);
}
@@ -373,8 +373,8 @@ private:
{
if (item->Quality != ITEM_QUALITY_EPIC) // Non-endgame gear is okay
return;
if ((hasPassedProgression(player, PROGRESSION_NAXX40) && item->RequiredLevel <= 60) ||
hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && item->RequiredLevel <=70)
if ((hasPassedProgression(player, PROGRESSION_NAXX40) && (item->RequiredLevel <= 60)) ||
hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (item->RequiredLevel <=70))
{
computedAdjustment += previousGearTuning;
}

View File

@@ -8,7 +8,7 @@ class spell_detect_magic : public SpellScript
{
PrepareSpellScript(spell_detect_magic);
void HandleDummy(SpellEffIndex effIndex)
void HandleDummy(SpellEffIndex /*effIndex*/)
{
if (GetCaster()->GetTypeId() != TYPEID_PLAYER)
return;

View File

@@ -161,7 +161,7 @@ public:
return new gobject_scarab_gongAI(object);
}
bool OnQuestReward(Player *player, GameObject *go, Quest const *quest, uint32 opt) override
bool OnQuestReward(Player *player, GameObject *go, Quest const *quest, uint32 /*opt*/) override
{
if (quest->GetQuestId() != QUEST_BANG_A_GONG)
return false;

View File

@@ -100,7 +100,7 @@ public:
Talk(SAY_INTRO);
}
void EnterCombat(Unit* who) override
void EnterCombat(Unit* /*who*/) override
{
Talk(SAY_AGGRO);

View File

@@ -168,7 +168,7 @@ class onyxia_entrance_trigger : public AreaTriggerScript
public:
onyxia_entrance_trigger() : AreaTriggerScript("onyxia_entrance_trigger") { }
bool OnTrigger(Player* player, AreaTrigger const* areaTrigger) override
bool OnTrigger(Player* player, AreaTrigger const* /*areaTrigger*/) override
{
if (player->getLevel() < 80)
{