From 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Oct 2012 01:19:46 +0300 Subject: Add unused warnings to some files. --- src/properties.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/properties.h') diff --git a/src/properties.h b/src/properties.h index 63dcd9afc..82664c600 100644 --- a/src/properties.h +++ b/src/properties.h @@ -48,7 +48,8 @@ class Properties * doesn't exist. */ const std::string getProperty(const std::string &name, - const std::string &def = "") const + const std::string &def = "") + const A_WARN_UNUSED { const PropertyMap::const_iterator i = mProperties.find(name); return (i != mProperties.end()) ? i->second : def; @@ -63,7 +64,7 @@ class Properties * doesn't exist. */ float getFloatProperty(const std::string &name, - const float def = 0.0f) const + const float def = 0.0f) const A_WARN_UNUSED { const PropertyMap::const_iterator i = mProperties.find(name); float ret = def; @@ -85,7 +86,7 @@ class Properties * doesn't exist. */ bool getBoolProperty(const std::string &name, - const bool def = false) const + const bool def = false) const A_WARN_UNUSED { const PropertyMap::const_iterator i = mProperties.find(name); bool ret = def; @@ -106,7 +107,7 @@ class Properties * @return true when a property is defined, * false otherwise. */ - bool hasProperty(const std::string &name) const + bool hasProperty(const std::string &name) const A_WARN_UNUSED { return (mProperties.find(name) != mProperties.end()); } /** -- cgit v1.2.3-70-g09d2