Permalink
Browse files

Fixed remaining compiler warnings

These were unused parameters and one return type with an ignored 'const'
qualifier.

Reviewed-by: Yohann Ferreira
  • Loading branch information...
1 parent a415bf0 commit 5e0fc928dca6f074cca25f3d76401d40523e9a7d @bjorn bjorn committed Mar 15, 2012
View
2 src/account-server/accounthandler.cpp
@@ -467,7 +467,7 @@ void AccountHandler::handleReconnectMessage(AccountClient &client,
mTokenCollector.addPendingClient(magic_token, &client);
}
-static bool checkCaptcha(AccountClient &client, const std::string &captcha)
+static bool checkCaptcha(AccountClient &, const std::string & /* captcha */)
{
// TODO
return true;
View
2 src/game-server/being.cpp
@@ -69,7 +69,7 @@ Being::Being(ThingType type):
#endif
}
-int Being::damage(Actor *source, const Damage &damage)
+int Being::damage(Actor * /* source */, const Damage &damage)
{
if (mAction == DEAD)
return 0;
View
6 src/game-server/commandhandler.cpp
@@ -1129,7 +1129,7 @@ static void handleRights(Character *player, std::string &)
say("Your rights level is: " + playerRights(player), player);
}
-static void handleHistory(Character *player, std::string &args)
+static void handleHistory(Character *, std::string &)
{
// TODO: Get args number of transactions and show them to the player
}
@@ -1197,7 +1197,7 @@ static void handleMute(Character *player, std::string &args)
accountHandler->sendTransaction(player->getDatabaseID(), TRANS_CMD_MUTE, msg.str());
}
-static void handleDie(Character *player, std::string &args)
+static void handleDie(Character *player, std::string &)
{
player->setAttribute(ATTR_HP, 0);
say("You've killed yourself.", player);
@@ -1303,7 +1303,7 @@ static void handleLogsay(Character *player, std::string &msg)
say("Message logged", player);
}
-static void handleKillMonsters(Character *player, std::string &args)
+static void handleKillMonsters(Character *player, std::string &)
{
const MapComposite *map = player->getMap();
int count = 0;
View
6 src/game-server/inventory.h
@@ -143,22 +143,22 @@ class Inventory
* the willing-to-be equipment slot.
* @todo
*/
- bool hasInventoryEnoughSpace(unsigned int equipmentSlot)
+ bool hasInventoryEnoughSpace(unsigned int /* equipmentSlot */)
{ return true; }
/**
* Test the items unequipment requirements.
* This is especially useful for scripted equipment.
* @todo
*/
- bool testUnequipScriptRequirements(unsigned int equipementSlot)
+ bool testUnequipScriptRequirements(unsigned int /* equipementSlot */)
{ return true; }
/**
* Test the items equipment for scripted requirements.
* @todo
*/
- bool testEquipScriptRequirements(unsigned int itemId)
+ bool testEquipScriptRequirements(unsigned int /* itemId */)
{ return true; }
/**
View
4 src/game-server/item.cpp
@@ -47,13 +47,13 @@ void ItemEffectAttrMod::dispell(Being *itemUser)
mId, !mDuration);
}
-bool ItemEffectAutoAttack::apply(Being *itemUser)
+bool ItemEffectAutoAttack::apply(Being * /* itemUser */)
{
// TODO - STUB
return false;
}
-void ItemEffectAutoAttack::dispell(Being *itemUser)
+void ItemEffectAutoAttack::dispell(Being * /* itemUser */)
{
// TODO
}
View
2 src/game-server/monster.h
@@ -106,7 +106,7 @@ class MonsterClass
void setGender(BeingGender gender)
{ mGender = gender; }
- const BeingGender getGender() const
+ BeingGender getGender() const
{ return mGender; }
/**

0 comments on commit 5e0fc92

Please sign in to comment.