summaryrefslogtreecommitdiff
path: root/src/animatedsprite.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/animatedsprite.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/animatedsprite.h')
-rw-r--r--src/animatedsprite.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/animatedsprite.h b/src/animatedsprite.h
index 7d3fefefb..d96555ff4 100644
--- a/src/animatedsprite.h
+++ b/src/animatedsprite.h
@@ -54,10 +54,11 @@ class AnimatedSprite final : public Sprite
* @param variant the sprite variant
*/
static AnimatedSprite *load(const std::string &filename,
- int variant = 0);
+ int variant = 0) A_WARN_UNUSED;
static AnimatedSprite *delayedLoad(const std::string &filename,
- const int variant = 0);
+ const int variant = 0)
+ A_WARN_UNUSED;
virtual ~AnimatedSprite();
@@ -69,26 +70,26 @@ class AnimatedSprite final : public Sprite
bool draw(Graphics* graphics, int posX, int posY) const;
- int getWidth() const;
+ int getWidth() const A_WARN_UNUSED;
- int getHeight() const;
+ int getHeight() const A_WARN_UNUSED;
- const Image* getImage() const;
+ const Image* getImage() const A_WARN_UNUSED;
bool setSpriteDirection(const SpriteDirection direction);
- int getNumberOfLayers() const
+ int getNumberOfLayers() const A_WARN_UNUSED
{ return 1; }
- std::string getIdPath() const;
+ std::string getIdPath() const A_WARN_UNUSED;
- unsigned int getCurrentFrame() const;
+ unsigned int getCurrentFrame() const A_WARN_UNUSED;
- unsigned int getFrameCount() const;
+ unsigned int getFrameCount() const A_WARN_UNUSED;
virtual void setAlpha(float alpha) override;
- virtual void *getHash() override;
+ virtual void *getHash() override A_WARN_UNUSED;
bool updateNumber(const unsigned num);