summaryrefslogtreecommitdiff
path: root/src/shopitem.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/shopitem.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/shopitem.h')
-rw-r--r--src/shopitem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shopitem.h b/src/shopitem.h
index f42f9ca9c..decaa3ad0 100644
--- a/src/shopitem.h
+++ b/src/shopitem.h
@@ -86,7 +86,7 @@ class ShopItem final : public Item
*
* @return the quantity of the currently topmost duplicate
*/
- int getCurrentQuantity() const
+ int getCurrentQuantity() const A_WARN_UNUSED
{
return mDuplicates.empty() ? 0 : mDuplicates.top()->quantity;
}
@@ -96,7 +96,7 @@ class ShopItem final : public Item
*
* @return the inventory index of the currently topmost duplicate
*/
- int getCurrentInvIndex() const
+ int getCurrentInvIndex() const A_WARN_UNUSED
{
return mDuplicates.empty() ? mInvIndex :
mDuplicates.top()->inventoryIndex;
@@ -120,7 +120,7 @@ class ShopItem final : public Item
*
* @return the price of the item
*/
- int getPrice() const
+ int getPrice() const A_WARN_UNUSED
{ return mPrice; }
/**
@@ -128,7 +128,7 @@ class ShopItem final : public Item
*
* @return the display name for the item in the shop list
*/
- const std::string &getDisplayName() const
+ const std::string &getDisplayName() const A_WARN_UNUSED
{ return mDisplayName; }
protected: