summaryrefslogtreecommitdiff
path: root/src/spellmanager.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/spellmanager.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadmanaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/spellmanager.h')
-rw-r--r--src/spellmanager.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/spellmanager.h b/src/spellmanager.h
index d232c4408..e3c580913 100644
--- a/src/spellmanager.h
+++ b/src/spellmanager.h
@@ -42,15 +42,15 @@ class SpellManager final
~SpellManager();
- TextCommand *getSpell(const int spellId);
+ TextCommand *getSpell(const int spellId) A_WARN_UNUSED;
- TextCommand* getSpellByItem(const int itemId);
+ TextCommand* getSpellByItem(const int itemId) A_WARN_UNUSED;
bool addSpell(TextCommand *const spell);
- TextCommand *createNewSpell() const;
+ TextCommand *createNewSpell() const A_WARN_UNUSED;
- std::vector<TextCommand*> getAll() const;
+ std::vector<TextCommand*> getAll() const A_WARN_UNUSED;
void useItem(const int itemId);
@@ -60,7 +60,7 @@ class SpellManager final
void save();
- std::string autoComplete(std::string partName);
+ std::string autoComplete(std::string partName) A_WARN_UNUSED;
private:
void fillSpells();
@@ -71,7 +71,8 @@ class SpellManager final
void invokeSpell(const TextCommand *const spell) const;
std::string parseCommand(std::string command,
- const Being *const target) const;
+ const Being *const target)
+ const A_WARN_UNUSED;
std::map<unsigned int, TextCommand*> mSpells;
std::vector<TextCommand*> mSpellsVector;