diff options
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 1 | ||||
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/questhandler.cpp | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 842292e2e..782dfee70 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -525,6 +525,7 @@ void SkillDialog::useSkill(const SkillInfo *const info) case SkillType::Unknown: case SkillType::Unused: + default: break; } } diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index c6838fe19..dba668745 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -445,7 +445,7 @@ void InventoryHandler::processPlayerInventoryRemove2(Net::MessageIn &msg) // +++ here possible use particle or text/sound effects // for different reasons - const int reason = msg.readInt16("reason"); + msg.readInt16("reason"); const int index = msg.readInt16("index") - INVENTORY_OFFSET; const int amount = msg.readInt16("amount"); if (inventory) diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 77ad01e19..35759bfd6 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -330,10 +330,10 @@ void PlayerHandler::processPlayerStatUpdate5(Net::MessageIn &msg) void PlayerHandler::processPlayerGetExp(Net::MessageIn &msg) { - const int id = msg.readInt32("player id"); - const int exp = msg.readInt32("exp amount"); - const int type = msg.readInt16("exp type"); - const int isQuest = msg.readInt16("is from quest"); + msg.readInt32("player id"); + msg.readInt32("exp amount"); + msg.readInt16("exp type"); + msg.readInt16("is from quest"); // Being *dstBeing = actorManager->findBeing(id); // need show particle depend on isQuest flag, for now ignored } diff --git a/src/net/eathena/questhandler.cpp b/src/net/eathena/questhandler.cpp index d7e8bf6e8..44567139f 100644 --- a/src/net/eathena/questhandler.cpp +++ b/src/net/eathena/questhandler.cpp @@ -129,7 +129,7 @@ void QuestHandler::processAddQuestsObjectives(Net::MessageIn &msg) const int quests = msg.readInt32("quests count"); for (int f = 0; f < quests; f ++) { - const int var = msg.readInt32("quest id"); + msg.readInt32("quest id"); msg.readInt32("time diff"); msg.readInt32("time"); const int num = msg.readInt16("objectives count"); |