summaryrefslogtreecommitdiff
path: root/src/statuseffect.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/statuseffect.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/statuseffect.h')
-rw-r--r--src/statuseffect.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/statuseffect.h b/src/statuseffect.h
index 1d36ed6cd..e807fe5f3 100644
--- a/src/statuseffect.h
+++ b/src/statuseffect.h
@@ -52,23 +52,23 @@ public:
* Creates the particle effect associated with this status effect, if
* possible.
*/
- Particle *getParticle() const;
+ Particle *getParticle() const A_WARN_UNUSED;
/**
* Retrieves the status icon for this effect, if applicable
*/
- AnimatedSprite *getIcon() const;
+ AnimatedSprite *getIcon() const A_WARN_UNUSED;
/**
* Retrieves an action to perform, or SpriteAction::INVALID
*/
- std::string getAction() const;
+ std::string getAction() const A_WARN_UNUSED;
/**
* Determines whether the particle effect should be restarted when the
* being changes maps
*/
- bool particleEffectIsPersistent() const
+ bool particleEffectIsPersistent() const A_WARN_UNUSED
{ return mPersistentParticleEffect; }
@@ -79,7 +79,8 @@ public:
* \param enabling Whether to retrieve the activating effect (true) or
* the deactivating effect (false).
*/
- static StatusEffect *getStatusEffect(const int index, const bool enabling);
+ static StatusEffect *getStatusEffect(const int index,
+ const bool enabling) A_WARN_UNUSED;
/**
* Retrieves a stun effect.
@@ -88,7 +89,7 @@ public:
* \param enabling Whether to retrieve the activating effect (true) or
* the deactivating effect (false).
*/
- static StatusEffect *getStunEffect(int index, bool enabling);
+ static StatusEffect *getStunEffect(int index, bool enabling) A_WARN_UNUSED;
/**
* Maps a block effect index to its corresponding effect index. Block
@@ -97,7 +98,8 @@ public:
*
* Returns -1 on failure.
*/
- static int blockEffectIndexToEffectIndex(const int blocKIndex);
+ static int blockEffectIndexToEffectIndex(const int blocKIndex)
+ A_WARN_UNUSED;
static void load();