From 0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Tue, 30 Oct 2012 13:05:34 +0300
Subject: Add unused warnings to other files.

---
 src/net/tmwa/gamehandler.h  | 4 ++--
 src/net/tmwa/loginhandler.h | 8 ++++----
 src/net/tmwa/network.h      | 4 ++--
 src/net/tmwa/npchandler.h   | 2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

(limited to 'src/net/tmwa')

diff --git a/src/net/tmwa/gamehandler.h b/src/net/tmwa/gamehandler.h
index 8d0c8f073..da5070cbc 100644
--- a/src/net/tmwa/gamehandler.h
+++ b/src/net/tmwa/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();
 
@@ -58,7 +58,7 @@ class GameHandler final : public MessageHandler, public Ea::GameHandler
 
         void mapLoadedEvent();
 
-        bool mustPing() const
+        bool mustPing() const A_WARN_UNUSED
         { return false; }
 };
 
diff --git a/src/net/tmwa/loginhandler.h b/src/net/tmwa/loginhandler.h
index 67afbee09..1a78fbb59 100644
--- a/src/net/tmwa/loginhandler.h
+++ b/src/net/tmwa/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/tmwa/network.h b/src/net/tmwa/network.h
index 90c48eb19..79b140430 100644
--- a/src/net/tmwa/network.h
+++ b/src/net/tmwa/network.h
@@ -61,14 +61,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/tmwa/npchandler.h b/src/net/tmwa/npchandler.h
index de0f3382a..285d775bb 100644
--- a/src/net/tmwa/npchandler.h
+++ b/src/net/tmwa/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 processNpcCommand(Net::MessageIn &msg, int npcId);
 
-- 
cgit v1.2.3-70-g09d2