summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 13:05:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9 (patch)
tree077c2ff59d6656096aa0acaaf4dd6bf4fb7867f7 /src/net/eathena
parent6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (diff)
downloadmanaplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.gz
manaplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.bz2
manaplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.xz
manaplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.zip
Add unused warnings to other files.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/gamehandler.h4
-rw-r--r--src/net/eathena/loginhandler.h8
-rw-r--r--src/net/eathena/network.h4
-rw-r--r--src/net/eathena/npchandler.h2
4 files changed, 9 insertions, 9 deletions
diff --git a/src/net/eathena/gamehandler.h b/src/net/eathena/gamehandler.h
index dc661157a..c627341a4 100644
--- a/src/net/eathena/gamehandler.h
+++ b/src/net/eathena/gamehandler.h
@@ -44,7 +44,7 @@ class GameHandler final : public MessageHandler, public Ea::GameHandler
void connect();
- bool isConnected();
+ bool isConnected() A_WARN_UNUSED;
void disconnect();
@@ -60,7 +60,7 @@ class GameHandler final : public MessageHandler, public Ea::GameHandler
void processMapCharId(Net::MessageIn &msg);
- bool mustPing() const
+ bool mustPing() const A_WARN_UNUSED
{ return true; }
};
diff --git a/src/net/eathena/loginhandler.h b/src/net/eathena/loginhandler.h
index ab7ae482a..2b683f044 100644
--- a/src/net/eathena/loginhandler.h
+++ b/src/net/eathena/loginhandler.h
@@ -49,21 +49,21 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler
void connect();
- bool isConnected();
+ bool isConnected() A_WARN_UNUSED;
void disconnect();
- int supportedOptionalActions() const
+ int supportedOptionalActions() const A_WARN_UNUSED
{ return SetGenderOnRegister; }
- unsigned int getMaxPasswordLength() const
+ unsigned int getMaxPasswordLength() const A_WARN_UNUSED
{ return 25; }
void changePassword(const std::string &username,
const std::string &oldPassword,
const std::string &newPassword);
- ServerInfo *getCharServer();
+ ServerInfo *getCharServer() A_WARN_UNUSED;
void processServerVersion(Net::MessageIn &msg);
diff --git a/src/net/eathena/network.h b/src/net/eathena/network.h
index e66a3c642..745867b48 100644
--- a/src/net/eathena/network.h
+++ b/src/net/eathena/network.h
@@ -60,14 +60,14 @@ class Network final : public Ea::Network
bool messageReady();
- MessageIn *getNextMessage();
+ MessageIn *getNextMessage() A_WARN_UNUSED;
void dispatchMessages();
protected:
friend class MessageOut;
- static Network *instance();
+ static Network *instance() A_WARN_UNUSED;
typedef std::map<uint16_t, MessageHandler*> MessageHandlers;
typedef MessageHandlers::iterator MessageHandlerIterator;
diff --git a/src/net/eathena/npchandler.h b/src/net/eathena/npchandler.h
index cc6dd499d..db03a7eb7 100644
--- a/src/net/eathena/npchandler.h
+++ b/src/net/eathena/npchandler.h
@@ -66,7 +66,7 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler
void sellItem(int beingId, int itemId, int amount);
- int getNpc(Net::MessageIn &msg, bool haveLength);
+ int getNpc(Net::MessageIn &msg, bool haveLength) A_WARN_UNUSED;
void processNpcCutin(Net::MessageIn &msg, int npcId);