Core: Adjust parameter output values to avoid excessive warning outputs on GCC and some other minor warnings

This commit is contained in:
click
2012-03-04 21:38:57 +01:00
parent 7cb07e48b3
commit 45946e23ba
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -16980,7 +16980,7 @@ void Unit::ChangeSeat(int8 seatId, bool next)
ASSERT(false);
}
void Unit::ExitVehicle(Position const* exitPosition)
void Unit::ExitVehicle(Position const* /*exitPosition*/)
{
//! This function can be called at upper level code to initialize an exit from the passenger's side.
if (!m_vehicle)
+1 -1
View File
@@ -769,7 +769,7 @@ class spell_dk_death_grip : public SpellScriptLoader
{
PrepareSpellScript(spell_dk_death_grip_SpellScript);
void HandleDummy(SpellEffIndex effIndex)
void HandleDummy(SpellEffIndex /*effIndex*/)
{
int32 damage = GetEffectValue();
Position const* pos = GetTargetDest();
+1 -2
View File
@@ -33,7 +33,6 @@ class ByteBufferException
}
protected:
size_t Pos;
size_t Size;
size_t ValueSize;
@@ -52,7 +51,7 @@ class ByteBufferPositionException : public ByteBufferException
void PrintError() const
{
sLog->outError("Attempted to %s value with size: "SIZEFMTD" in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD") " ,
ValueSize, (_add ? "put" : "get"), Pos, Size);
(_add ? "put" : "get"), ValueSize, Pos, Size);
}
private: