summaryrefslogtreecommitdiff
path: root/src/imagesprite.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/imagesprite.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/imagesprite.h')
-rw-r--r--src/imagesprite.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imagesprite.h b/src/imagesprite.h
index 0522533d7..0b6557a7d 100644
--- a/src/imagesprite.h
+++ b/src/imagesprite.h
@@ -48,26 +48,26 @@ public:
bool draw(Graphics* graphics, int posX, int posY) const override;
- int getWidth() const override
+ int getWidth() const override A_WARN_UNUSED
{ return mImage ? mImage->getWidth() : 0; }
- int getHeight() const override
+ int getHeight() const override A_WARN_UNUSED
{ return mImage ? mImage->getHeight() : 0; }
- const Image* getImage() const
+ const Image* getImage() const A_WARN_UNUSED
{ return mImage; }
virtual bool setSpriteDirection(const SpriteDirection
direction A_UNUSED) override
{ return false; }
- int getNumberOfLayers() const
+ int getNumberOfLayers() const A_WARN_UNUSED
{ return 1; }
- unsigned int getCurrentFrame() const override
+ unsigned int getCurrentFrame() const override A_WARN_UNUSED
{ return 0; }
- unsigned int getFrameCount() const override
+ unsigned int getFrameCount() const override A_WARN_UNUSED
{ return 1; }
bool updateNumber(const unsigned num A_UNUSED) override