diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-01 16:25:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-01 16:28:55 +0300 |
commit | 07b53a06e9cde268d423917193f1f3d7cebcdbeb (patch) | |
tree | a6912effc61c48a42e1f999dc3b08fc2280669c7 /src/configuration.h | |
parent | 2d64e42449c580b7e4135559113725a255022a9a (diff) | |
download | manaverse-07b53a06e9cde268d423917193f1f3d7cebcdbeb.tar.gz manaverse-07b53a06e9cde268d423917193f1f3d7cebcdbeb.tar.bz2 manaverse-07b53a06e9cde268d423917193f1f3d7cebcdbeb.tar.xz manaverse-07b53a06e9cde268d423917193f1f3d7cebcdbeb.zip |
Add macro A_WARN_UNUSED_NON_TESTS what works only not in unit tests.
Diffstat (limited to 'src/configuration.h')
-rw-r--r-- | src/configuration.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/configuration.h b/src/configuration.h index fa3e0ec19..dae353143 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -340,13 +340,16 @@ class Configuration final : public ConfigurationObject * The default value returned in based on fallbacks registry. * @see defaults.h */ - int getIntValue(const std::string &key) const A_WARN_UNUSED; + int getIntValue(const std::string &key) const A_WARN_UNUSED_NON_TESTS; - float getFloatValue(const std::string &key) const A_WARN_UNUSED; + float getFloatValue(const std::string &key) const + A_WARN_UNUSED_NON_TESTS; - std::string getStringValue(const std::string &key) const A_WARN_UNUSED; + std::string getStringValue(const std::string &key) const + A_WARN_UNUSED_NON_TESTS; - bool getBoolValue(const std::string &key) const A_WARN_UNUSED; + bool getBoolValue(const std::string &key) const + A_WARN_UNUSED_NON_TESTS; std::string getDirectory() const noexcept2 A_WARN_UNUSED { return mDirectory; } |