diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-30 01:19:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:11:34 +0300 |
commit | 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch) | |
tree | 4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/sprite.h | |
parent | 2a70a50c785ce639b76141a3a6887836d22fe12c (diff) | |
download | ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2 ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip |
Add unused warnings to some files.
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sprite.h b/src/sprite.h index 2d7b7c0a6..8c6c2b559 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -66,17 +66,17 @@ class Sprite /** * Gets the width in pixels of the image of the current frame */ - virtual int getWidth() const = 0; + virtual int getWidth() const A_WARN_UNUSED = 0; /** * Gets the height in pixels of the image of the current frame */ - virtual int getHeight() const = 0; + virtual int getHeight() const A_WARN_UNUSED = 0; /** * Returns a reference to the current image being drawn. */ - virtual const Image* getImage() const = 0; + virtual const Image* getImage() const A_WARN_UNUSED = 0; /** * Sets the direction. @@ -94,23 +94,23 @@ class Sprite /** * Returns the current alpha opacity of the animated sprite. */ - virtual float getAlpha() const + virtual float getAlpha() const A_WARN_UNUSED { return mAlpha; } /** * Returns the current frame number for the sprite. */ - virtual unsigned int getCurrentFrame() const = 0; + virtual unsigned int getCurrentFrame() const A_WARN_UNUSED = 0; /** * Returns the frame count for the sprite. */ - virtual unsigned int getFrameCount() const = 0; + virtual unsigned int getFrameCount() const A_WARN_UNUSED = 0; - virtual void *getHash() + virtual void *getHash() A_WARN_UNUSED { return nullptr; } - virtual void *getHash2() + virtual void *getHash2() A_WARN_UNUSED { return this; } virtual bool updateNumber(const unsigned num) = 0; |