summaryrefslogtreecommitdiff
path: root/src/graphics.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/graphics.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/graphics.h')
-rw-r--r--src/graphics.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/graphics.h b/src/graphics.h
index d6fd015f9..d538ef7af 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -108,7 +108,7 @@ class Graphics : public gcn::SDLGraphics
*/
void setSync(const bool sync);
- bool getSync() const
+ bool getSync() const A_WARN_UNUSED
{ return mSync; }
/**
@@ -244,7 +244,7 @@ class Graphics : public gcn::SDLGraphics
void setBlitMode(const BlitMode mode)
{ mBlitMode = mode; }
- BlitMode getBlitMode() const
+ BlitMode getBlitMode() const A_WARN_UNUSED
{ return mBlitMode; }
void fillRectangle(const gcn::Rectangle& rectangle) override;
@@ -258,64 +258,64 @@ class Graphics : public gcn::SDLGraphics
/**
* Returns the width of the screen.
*/
- int getWidth() const;
+ int getWidth() const A_WARN_UNUSED;
/**
* Returns the height of the screen.
*/
- int getHeight() const;
+ int getHeight() const A_WARN_UNUSED;
/**
* Takes a screenshot and returns it as SDL surface.
*/
- virtual SDL_Surface *getScreenshot();
+ virtual SDL_Surface *getScreenshot() A_WARN_UNUSED;
virtual void prepareScreenshot()
{ }
- int getMemoryUsage() const;
+ int getMemoryUsage() const A_WARN_UNUSED;
virtual bool drawNet(const int x1, const int y1,
const int x2, const int y2,
const int width, const int height);
- gcn::Font *getFont() const
+ gcn::Font *getFont() const A_WARN_UNUSED
{ return mFont; }
- gcn::ClipRectangle &getTopClip()
+ gcn::ClipRectangle &getTopClip() A_WARN_UNUSED
{ return mClipStack.top(); }
void setRedraw(const bool n)
{ mRedraw = n; }
- bool getRedraw() const
+ bool getRedraw() const A_WARN_UNUSED
{ return mRedraw; }
void setSecure(const bool n)
{ mSecure = n; }
- bool getSecure() const
+ bool getSecure() const A_WARN_UNUSED
{ return mSecure; }
- int getBpp() const
+ int getBpp() const A_WARN_UNUSED
{ return mBpp; }
- bool getFullScreen() const
+ bool getFullScreen() const A_WARN_UNUSED
{ return mFullscreen; }
- bool getHWAccel() const
+ bool getHWAccel() const A_WARN_UNUSED
{ return mHWAccel; }
- bool getDoubleBuffer() const
+ bool getDoubleBuffer() const A_WARN_UNUSED
{ return mDoubleBuffer; }
- int getOpenGL() const
+ int getOpenGL() const A_WARN_UNUSED
{ return mOpenGL; }
void setNoFrame(const bool n)
{ mNoFrame = n; }
- const std::string &getName() const
+ const std::string &getName() const A_WARN_UNUSED
{ return mName; }
virtual void initArrays()
@@ -341,9 +341,9 @@ class Graphics : public gcn::SDLGraphics
void setMainFlags(int w, int h, int bpp, bool fs,
bool hwaccel, bool resize, bool noFrame);
- int getOpenGLFlags() const;
+ int getOpenGLFlags() const A_WARN_UNUSED;
- int getSoftwareFlags() const;
+ int getSoftwareFlags() const A_WARN_UNUSED;
bool setOpenGLMode();