diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:05:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:11:34 +0300 |
commit | 0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9 (patch) | |
tree | 077c2ff59d6656096aa0acaaf4dd6bf4fb7867f7 /src/net/messagein.h | |
parent | 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (diff) | |
download | manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.gz manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.bz2 manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.xz manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.zip |
Add unused warnings to other files.
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r-- | src/net/messagein.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/messagein.h b/src/net/messagein.h index d8cdf96e2..d17a49f5d 100644 --- a/src/net/messagein.h +++ b/src/net/messagein.h @@ -45,19 +45,19 @@ class MessageIn /** * Returns the message ID. */ - int getId() const + int getId() const A_WARN_UNUSED { return mId; } /** * Returns the message length. */ - unsigned int getLength() const + unsigned int getLength() const A_WARN_UNUSED { return mLength; } /** * Returns the length of unread data. */ - unsigned int getUnreadLength() const + unsigned int getUnreadLength() const A_WARN_UNUSED { return mLength > mPos ? mLength - mPos : 0; } virtual unsigned char readInt8(); /**< Reads a byte. */ @@ -105,7 +105,7 @@ class MessageIn virtual ~MessageIn() { } - static uint8_t fromServerDirection(uint8_t serverDir); + static uint8_t fromServerDirection(uint8_t serverDir) A_WARN_UNUSED; protected: /** |