Skip to content

Commit

Permalink
[c12838] Fix some unused parameter warnings
Browse files Browse the repository at this point in the history
(based on commit [12634] - 5fb0c37)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
Schmoozerd authored and xfurry committed Apr 25, 2014
1 parent 2ea7fc8 commit 71db230
Show file tree
Hide file tree
Showing 24 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/game/AuctionHouseBot/AuctionHouseBot.cpp
Expand Up @@ -1490,7 +1490,7 @@ bool AuctionBotSeller::getRandomArray(AHB_Seller_Config& config, RandomArray& ra
}

// Set items price. All important value are passed by address.
void AuctionBotSeller::SetPricesOfItem(ItemPrototype const* itemProto, AHB_Seller_Config& config, uint64& buyp, uint64& bidp, uint32 stackcnt, ItemQualities itemQuality)
void AuctionBotSeller::SetPricesOfItem(ItemPrototype const* /*itemProto*/, AHB_Seller_Config& config, uint64& buyp, uint64& bidp, uint32 stackcnt, ItemQualities itemQuality)
{
double temp_buyp = buyp * stackcnt *
(itemQuality < MAX_AUCTION_QUALITY ? config.GetPriceRatioPerQuality(AuctionQuality(itemQuality)) : 1) ;
Expand Down
2 changes: 1 addition & 1 deletion src/game/BattleGround/BattleGroundEY.cpp
Expand Up @@ -214,7 +214,7 @@ bool BattleGroundEY::HandleEvent(uint32 eventId, GameObject* go)
return false;
}

void BattleGroundEY::ProcessCaptureEvent(GameObject* go, uint32 towerId, Team team, uint32 newWorldState, uint32 message)
void BattleGroundEY::ProcessCaptureEvent(GameObject* /*go*/, uint32 towerId, Team team, uint32 newWorldState, uint32 message)
{
if (team == ALLIANCE)
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/Creature.cpp
Expand Up @@ -1128,7 +1128,7 @@ void Creature::SaveToDB(uint32 mapid, uint8 spawnMask, uint32 phaseMask)
WorldDatabase.CommitTransaction();
}

void Creature::SelectLevel(const CreatureInfo* cinfo, float percentHealth, float percentMana)
void Creature::SelectLevel(const CreatureInfo* cinfo, float percentHealth, float /*percentMana*/)
{
uint32 rank = IsPet() ? 0 : cinfo->Rank; // TODO :: IsPet probably not needed here

Expand Down
2 changes: 1 addition & 1 deletion src/game/GameObject.cpp
Expand Up @@ -2229,7 +2229,7 @@ void GameObject::DealGameObjectDamage(uint32 damage, uint32 spell, Unit* caster)
SendMessageToSet(&data, false);
}

void GameObject::RebuildGameObject(uint32 spell, Unit* caster)
void GameObject::RebuildGameObject(uint32 /*spell*/, Unit* caster)
{
MANGOS_ASSERT(GetGoType() == GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING);
MANGOS_ASSERT(caster);
Expand Down
2 changes: 1 addition & 1 deletion src/game/GridMap.cpp
Expand Up @@ -825,7 +825,7 @@ float TerrainInfo::GetHeightStatic(float x, float y, float z, bool useVmaps/*=tr
return mapHeight;
}

inline bool IsOutdoorWMO(uint32 mogpFlags, int32 adtId, int32 rootId, int32 groupId,
inline bool IsOutdoorWMO(uint32 mogpFlags, int32 /*adtId*/, int32 /*rootId*/, int32 /*groupId*/,
WMOAreaTableEntry const* wmoEntry, AreaTableEntry const* atEntry)
{
bool outdoor = true;
Expand Down
2 changes: 1 addition & 1 deletion src/game/Group.cpp
Expand Up @@ -1588,7 +1588,7 @@ void Group::UpdateLooterGuid(WorldObject* pSource, bool ifneed)
SendUpdate();
}

GroupJoinBattlegroundResult Group::CanJoinBattleGroundQueue(BattleGround const* bgOrTemplate, BattleGroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 MaxPlayerCount, bool isRated, uint32 arenaSlot)
GroupJoinBattlegroundResult Group::CanJoinBattleGroundQueue(BattleGround const* bgOrTemplate, BattleGroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 /*MaxPlayerCount*/, bool isRated, uint32 arenaSlot)
{
BattlemasterListEntry const* bgEntry = sBattlemasterListStore.LookupEntry(bgOrTemplate->GetTypeID());
if (!bgEntry)
Expand Down
2 changes: 1 addition & 1 deletion src/game/HomeMovementGenerator.cpp
Expand Up @@ -55,7 +55,7 @@ void HomeMovementGenerator<Creature>::_setTargetLocation(Creature& owner)
owner.clearUnitState(UNIT_STAT_ALL_DYN_STATES);
}

bool HomeMovementGenerator<Creature>::Update(Creature& owner, const uint32& time_diff)
bool HomeMovementGenerator<Creature>::Update(Creature& owner, const uint32& /*time_diff*/)
{
arrived = owner.movespline->Finalized();
return !arrived;
Expand Down
2 changes: 1 addition & 1 deletion src/game/Mail.cpp
Expand Up @@ -80,7 +80,7 @@ MailSender::MailSender(AuctionEntry* sender)
*
* Note : Actualy it seem no info from event is required. We need more research to correctly initialise m_senderId
*/
MailSender::MailSender(CalendarEvent const* sender)
MailSender::MailSender(CalendarEvent const* /*sender*/)
: m_messageType(MAIL_CALENDAR), m_senderId(0), m_stationery(MAIL_STATIONERY_DEFAULT)
{
}
Expand Down
4 changes: 2 additions & 2 deletions src/game/Object.cpp
Expand Up @@ -1511,15 +1511,15 @@ bool WorldObject::IsPositionValid() const
return MaNGOS::IsValidMapCoord(m_position.x, m_position.y, m_position.z, m_position.o);
}

void WorldObject::MonsterSay(const char* text, uint32 language, Unit const* target) const
void WorldObject::MonsterSay(const char* text, uint32 /*language*/, Unit const* target) const
{
WorldPacket data;
ChatHandler::BuildChatPacket(data, CHAT_MSG_MONSTER_SAY, text, LANG_UNIVERSAL, CHAT_TAG_NONE, GetObjectGuid(), GetName(),
target ? target->GetObjectGuid() : ObjectGuid(),target ? target->GetName() : "");
SendMessageToSetInRange(&data, sWorld.getConfig(CONFIG_FLOAT_LISTEN_RANGE_SAY), true);
}

void WorldObject::MonsterYell(const char* text, uint32 language, Unit const* target) const
void WorldObject::MonsterYell(const char* text, uint32 /*language*/, Unit const* target) const
{
WorldPacket data;
ChatHandler::BuildChatPacket(data, CHAT_MSG_MONSTER_YELL, text, LANG_UNIVERSAL, CHAT_TAG_NONE, GetObjectGuid(), GetName(),
Expand Down
2 changes: 1 addition & 1 deletion src/game/PointMovementGenerator.cpp
Expand Up @@ -64,7 +64,7 @@ void PointMovementGenerator<T>::Reset(T& unit)
}

template<class T>
bool PointMovementGenerator<T>::Update(T& unit, const uint32& diff)
bool PointMovementGenerator<T>::Update(T& unit, const uint32& /*diff*/)
{
if (!&unit)
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/game/PoolManager.cpp
Expand Up @@ -126,7 +126,7 @@ void PoolObject::CheckEventLinkAndReport<GameObject>(uint32 poolId, int16 event_
}

template<>
void PoolObject::CheckEventLinkAndReport<Pool>(uint32 poolId, int16 event_id, std::map<uint32, int16> const& creature2event, std::map<uint32, int16> const& go2event) const
void PoolObject::CheckEventLinkAndReport<Pool>(uint32 /*poolId*/, int16 event_id, std::map<uint32, int16> const& creature2event, std::map<uint32, int16> const& go2event) const
{
sPoolMgr.CheckEventLinkAndReport(guid, event_id, creature2event, go2event);
}
Expand Down
8 changes: 4 additions & 4 deletions src/game/SpellEffects.cpp
Expand Up @@ -5340,7 +5340,7 @@ void Spell::EffectSummonType(SpellEffectEntry const* effect)
}
}

bool Spell::DoSummonWild(CreatureSummonPositions& list, SummonPropertiesEntry const* prop, SpellEffectEntry const* effect, uint32 level)
bool Spell::DoSummonWild(CreatureSummonPositions& list, SummonPropertiesEntry const* prop, SpellEffectEntry const* effect, uint32 /*level*/)
{
MANGOS_ASSERT(!list.empty() && prop);

Expand Down Expand Up @@ -10653,7 +10653,7 @@ void Spell::EffectStealBeneficialBuff(SpellEffectEntry const* effect)
}
}

void Spell::EffectWMODamage(SpellEffectEntry const* effect)
void Spell::EffectWMODamage(SpellEffectEntry const* /*effect*/)
{
DEBUG_LOG("Effect: WMODamage");

Expand All @@ -10674,7 +10674,7 @@ void Spell::EffectWMODamage(SpellEffectEntry const* effect)
gameObjTarget->DealGameObjectDamage(uint32(damage), m_spellInfo->Id, caster);
}

void Spell::EffectWMORepair(SpellEffectEntry const* effect)
void Spell::EffectWMORepair(SpellEffectEntry const* /*effect*/)
{
DEBUG_LOG("Effect: WMORepair");

Expand Down Expand Up @@ -10919,7 +10919,7 @@ void Spell::EffectRestoreItemCharges(SpellEffectEntry const* effect)
item->RestoreCharges();
}

void Spell::EffectRedirectThreat(SpellEffectEntry const* effect)
void Spell::EffectRedirectThreat(SpellEffectEntry const* /*effect*/)
{
if (!unitTarget)
return;
Expand Down
2 changes: 1 addition & 1 deletion src/game/TargetedMovementGenerator.h
Expand Up @@ -60,7 +60,7 @@ class MANGOS_DLL_SPEC TargetedMovementGeneratorMedium
protected:
void _setTargetLocation(T&, bool updateDestination);
bool RequiresNewPosition(T& owner, float x, float y, float z) const;
virtual float GetDynamicTargetDistance(T& owner, bool forRangeCheck) const { return i_offset; }
virtual float GetDynamicTargetDistance(T& /*owner*/, bool /*forRangeCheck*/) const { return i_offset; }

ShortTimeTracker i_recheckDistance;
float i_offset;
Expand Down
2 changes: 1 addition & 1 deletion src/game/Transports.cpp
Expand Up @@ -500,7 +500,7 @@ bool Transport::RemovePassenger(Player* passenger)
return true;
}

void Transport::Update(uint32 update_diff, uint32 /*p_time*/)
void Transport::Update(uint32 /*update_diff*/, uint32 /*p_time*/)
{
if (m_WayPoints.size() <= 1)
return;
Expand Down
8 changes: 4 additions & 4 deletions src/game/Unit.cpp
Expand Up @@ -4619,7 +4619,7 @@ void Unit::RemoveAura(uint32 spellId, SpellEffectIndex effindex, Aura* except)
++iter;
}
}
void Unit::RemoveAurasByCasterSpell(uint32 spellId, ObjectGuid casterGuid, AuraRemoveMode mode /*=AURA_REMOVE_BY_DEFAULT*/)
void Unit::RemoveAurasByCasterSpell(uint32 spellId, ObjectGuid casterGuid, AuraRemoveMode /*mode*/ /*=AURA_REMOVE_BY_DEFAULT*/)
{
SpellAuraHolderBounds spair = GetSpellAuraHolderBounds(spellId);
for (SpellAuraHolderMap::iterator iter = spair.first; iter != spair.second;)
Expand Down Expand Up @@ -7461,7 +7461,7 @@ uint32 Unit::SpellHealingBonusDone(Unit* pVictim, SpellEntry const* spellProto,
* Calculates target part of healing spell bonuses,
* will be called on each tick for periodic damage over time auras
*/
uint32 Unit::SpellHealingBonusTaken(Unit* pCaster, SpellEntry const* spellProto, int32 healamount, DamageEffectType damagetype, uint32 stack)
uint32 Unit::SpellHealingBonusTaken(Unit* /*pCaster*/, SpellEntry const* spellProto, int32 healamount, DamageEffectType damagetype, uint32 stack)
{
float TakenTotalMod = 1.0f;

Expand Down Expand Up @@ -7585,7 +7585,7 @@ bool Unit::IsImmunedToDamage(SpellSchoolMask shoolMask)
return false;
}

bool Unit::IsImmuneToSpell(SpellEntry const* spellInfo, bool castOnSelf)
bool Unit::IsImmuneToSpell(SpellEntry const* spellInfo, bool /*castOnSelf*/)
{
if (!spellInfo)
return false;
Expand Down Expand Up @@ -7624,7 +7624,7 @@ bool Unit::IsImmuneToSpell(SpellEntry const* spellInfo, bool castOnSelf)
return false;
}

bool Unit::IsImmuneToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index, bool castOnSelf) const
bool Unit::IsImmuneToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index, bool /*castOnSelf*/) const
{
//If m_immuneToEffect type contain this effect type, IMMUNE effect.
SpellEffectEntry const* spellEffect = spellInfo->GetSpellEffect(index);
Expand Down
2 changes: 1 addition & 1 deletion src/game/Vehicle.h
Expand Up @@ -92,7 +92,7 @@ class VehicleInfo : public TransportBase
uint8 GetEmptySeats() const { return m_vehicleSeats.size() - m_passengers.size(); }

bool IsUsableSeatForPlayer(uint32 seatFlags) const;
bool IsUsableSeatForCreature(uint32 seatFlags) const { return true; } // special flag?, !IsUsableSeatForPlayer(seatFlags)?
bool IsUsableSeatForCreature(uint32 /*seatFlags*/) const { return true; } // special flag?, !IsUsableSeatForPlayer(seatFlags)?

// Apply/ Remove Controlling of the vehicle
void ApplySeatMods(Unit* passenger, uint32 seatFlags);
Expand Down
2 changes: 1 addition & 1 deletion src/game/WaypointMovementGenerator.cpp
Expand Up @@ -366,7 +366,7 @@ void FlightPathMovementGenerator::Reset(Player& player)
init.Launch();
}

bool FlightPathMovementGenerator::Update(Player& player, const uint32& diff)
bool FlightPathMovementGenerator::Update(Player& player, const uint32& /*diff*/)
{
uint32 pointId = (uint32)player.movespline->currentPathIdx();
if (pointId > i_currentNode)
Expand Down
2 changes: 1 addition & 1 deletion src/game/World.cpp
Expand Up @@ -1986,7 +1986,7 @@ void World::ShutdownCancel()
DEBUG_LOG("Server %s cancelled.", (m_ShutdownMask & SHUTDOWN_MASK_RESTART ? "restart" : "shutdown"));
}

void World::UpdateSessions(uint32 diff)
void World::UpdateSessions(uint32 /*diff*/)
{
///- Add new sessions
WorldSession* sess;
Expand Down
4 changes: 2 additions & 2 deletions src/game/vmap/VMapManager2.h
Expand Up @@ -91,7 +91,7 @@ namespace VMAP
bool getObjectHitPos(unsigned int pMapId, float x1, float y1, float z1, float x2, float y2, float z2, float& rx, float& ry, float& rz, float pModifyDist) override;
float getHeight(unsigned int pMapId, float x, float y, float z, float maxSearchDist) override;

bool processCommand(char* pCommand) override { return false; } // for debug and extensions
bool processCommand(char* /*pCommand*/) override { return false; } // for debug and extensions

bool getAreaInfo(unsigned int pMapId, float x, float y, float& z, uint32& flags, int32& adtId, int32& rootId, int32& groupId) const override;
bool GetLiquidLevel(uint32 pMapId, float x, float y, float z, uint8 ReqLiquidType, float& level, float& floor, uint32& type) const override;
Expand All @@ -100,7 +100,7 @@ namespace VMAP
void releaseModelInstance(const std::string& filename);

// what's the use of this? o.O
std::string getDirFileName(unsigned int pMapId, int x, int y) const override
std::string getDirFileName(unsigned int pMapId, int /*x*/, int /*y*/) const override
{
return getMapFileName(pMapId);
}
Expand Down
4 changes: 2 additions & 2 deletions src/mangosd/CliRunnable.cpp
Expand Up @@ -34,7 +34,7 @@
#include "Player.h"
#include "Chat.h"

void utf8print(void* arg, const char* str)
void utf8print(void* /*arg*/, const char* str)
{
#if PLATFORM == PLATFORM_WINDOWS
wchar_t wtemp_buf[6000];
Expand All @@ -50,7 +50,7 @@ void utf8print(void* arg, const char* str)
#endif
}

void commandFinished(void*, bool sucess)
void commandFinished(void*, bool /*sucess*/)
{
printf("mangos>");
fflush(stdout);
Expand Down
2 changes: 1 addition & 1 deletion src/mangosd/RASocket.cpp
Expand Up @@ -288,7 +288,7 @@ void RASocket::zprint(void* callbackArg, const char* szText)
((RASocket*)callbackArg)->sendf(szText);
}

void RASocket::commandFinished(void* callbackArg, bool success)
void RASocket::commandFinished(void* callbackArg, bool /*success*/)
{
RASocket* raSocket = (RASocket*)callbackArg;
raSocket->sendf("mangos>");
Expand Down
2 changes: 1 addition & 1 deletion src/realmd/BufferedSocket.cpp
Expand Up @@ -249,7 +249,7 @@ bool BufferedSocket::send(const char* buf, size_t len)
return n == space ? 1 : 0;
}

/*virtual*/ int BufferedSocket::handle_close(ACE_HANDLE h, ACE_Reactor_Mask m)
/*virtual*/ int BufferedSocket::handle_close(ACE_HANDLE /*h*/, ACE_Reactor_Mask /*m*/)
{
this->OnClose();

Expand Down
4 changes: 2 additions & 2 deletions src/shared/Util.cpp
Expand Up @@ -52,7 +52,7 @@ uint32 WorldTimer::getMSTime()
return getMSTime_internal();
}

uint32 WorldTimer::getMSTime_internal(bool savetime /*= false*/)
uint32 WorldTimer::getMSTime_internal(bool /*savetime*/ /*= false*/)
{
// get current time
const ACE_Time_Value currTime = ACE_OS::gettimeofday();
Expand Down Expand Up @@ -537,7 +537,7 @@ bool Utf8FitTo(const std::string& str, std::wstring search)
return true;
}

void utf8printf(FILE* out, const char* str, ...)
void utf8printf(FILE* /*out*/, const char* str, ...)
{
va_list ap;
va_start(ap, str);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12837"
#define REVISION_NR "12838"
#endif // __REVISION_NR_H__

0 comments on commit 71db230

Please sign in to comment.