summaryrefslogtreecommitdiff
path: root/src/game.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/game.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/game.h')
-rw-r--r--src/game.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/game.h b/src/game.h
index 001c7c348..59fa68012 100644
--- a/src/game.h
+++ b/src/game.h
@@ -67,7 +67,7 @@ class Game final
/**
* Provides access to the game instance.
*/
- static Game *instance()
+ static Game *instance() A_WARN_UNUSED
{ return mInstance; }
static void clearInstance()
@@ -92,10 +92,10 @@ class Game final
/**
* Returns the currently active map.
*/
- Map *getCurrentMap() const
+ Map *getCurrentMap() const A_WARN_UNUSED
{ return mCurrentMap; }
- const std::string &getCurrentMapName() const
+ const std::string &getCurrentMapName() const A_WARN_UNUSED
{ return mMapName; }
void setValidSpeed();
@@ -111,7 +111,7 @@ class Game final
void videoResized(const int width, const int height) const;
- bool getValidSpeed() const
+ bool getValidSpeed() const A_WARN_UNUSED
{ return mValidSpeed; }
static bool createScreenshot();
@@ -125,11 +125,8 @@ class Game final
void clearKeysArray();
-
int mLastTarget;
-// WindowMenu *mWindowMenu;
-
Map *mCurrentMap;
std::string mMapName;
bool mValidSpeed;