Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 5e0fc928dca6f074cca25f3d76401d40523e9a7d 1 parent a415bf0
Thorbjørn Lindeijer bjorn authored
2  src/account-server/accounthandler.cpp
View
@@ -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;
2  src/game-server/being.cpp
View
@@ -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;
6 src/game-server/commandhandler.cpp
View
@@ -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;
6 src/game-server/inventory.h
View
@@ -143,7 +143,7 @@ class Inventory
* the willing-to-be equipment slot.
* @todo
*/
- bool hasInventoryEnoughSpace(unsigned int equipmentSlot)
+ bool hasInventoryEnoughSpace(unsigned int /* equipmentSlot */)
{ return true; }
/**
@@ -151,14 +151,14 @@ class Inventory
* 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; }
/**
4 src/game-server/item.cpp
View
@@ -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
}
2  src/game-server/monster.h
View
@@ -106,7 +106,7 @@ class MonsterClass
void setGender(BeingGender gender)
{ mGender = gender; }
- const BeingGender getGender() const
+ BeingGender getGender() const
{ return mGender; }
/**
Please sign in to comment.
Something went wrong with that request. Please try again.