summaryrefslogtreecommitdiff
path: root/src/gui/shopwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 01:19:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch)
tree4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/gui/shopwindow.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadmv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/gui/shopwindow.h')
-rw-r--r--src/gui/shopwindow.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/shopwindow.h b/src/gui/shopwindow.h
index b04a3a474..90fd09b6c 100644
--- a/src/gui/shopwindow.h
+++ b/src/gui/shopwindow.h
@@ -90,7 +90,7 @@ class ShopWindow final : public Window, public gcn::ActionListener,
/**
* Returns true if any instances exist.
*/
- static bool isActive()
+ static bool isActive() A_WARN_UNUSED
{ return !instances.empty(); }
void setItemSelected(const int id)
@@ -113,7 +113,7 @@ class ShopWindow final : public Window, public gcn::ActionListener,
void setAcceptPlayer(std::string name)
{ mAcceptPlayer = name; }
- const std::string &getAcceptPlayer() const
+ const std::string &getAcceptPlayer() const A_WARN_UNUSED
{ return mAcceptPlayer; }
void sendMessage(const std::string &nick, std::string data,
@@ -124,15 +124,16 @@ class ShopWindow final : public Window, public gcn::ActionListener,
void processRequest(std::string nick, std::string data,
const int mode);
- bool findShopItem(const ShopItem *const shopItem, const int mode);
+ bool findShopItem(const ShopItem *const shopItem,
+ const int mode) A_WARN_UNUSED;
- static int sumAmount(const Item *const shopItem);
+ static int sumAmount(const Item *const shopItem) A_WARN_UNUSED;
void updateTimes();
- bool checkFloodCounter(int &counterTime) const;
+ bool checkFloodCounter(int &counterTime) const A_WARN_UNUSED;
- bool isShopEmpty() const;
+ bool isShopEmpty() const A_WARN_UNUSED;
private:
void startTrade();