From b0ecb15a2167afefd9ac39cc478e2e707a223faf Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Wed, 24 Nov 2010 13:57:16 +1300 Subject: Fix many compiler warnings. Reviewed-by: Bertram --- src/game-server/commandhandler.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/game-server/commandhandler.cpp') diff --git a/src/game-server/commandhandler.cpp b/src/game-server/commandhandler.cpp index d9445334..5bd6a04f 100644 --- a/src/game-server/commandhandler.cpp +++ b/src/game-server/commandhandler.cpp @@ -733,7 +733,7 @@ static void handleRecall(Character *player, std::string &args) GameState::warp(other, map, pos.x, pos.y); } -static void handleReload(Character *player, std::string &args) +static void handleReload(Character *, std::string &) { // reload the items and monsters itemManager->reload(); @@ -832,7 +832,9 @@ static void handleGivePermission(Character *player, std::string &args) if (permission & other->getAccountLevel()) { say(player->getName()+" already has the permission "+strPermission, player); - } else { + } + else + { permission += other->getAccountLevel(); // change the player's account level other->setAccountLevel(permission); @@ -992,7 +994,7 @@ static void handleAnnounce(Character *player, std::string &msg) GameState::sayToAll(msg); } -static void handleWhere(Character *player, std::string &args) +static void handleWhere(Character *player, std::string &) { std::stringstream str; str << "Your current location is map " @@ -1005,7 +1007,7 @@ static void handleWhere(Character *player, std::string &args) say (str.str(), player); } -static void handleRights(Character *player, std::string &args) +static void handleRights(Character *player, std::string &) { std::listclasses; classes = PermissionManager::getClassList(player); -- cgit v1.2.3-70-g09d2