summaryrefslogtreecommitdiff
path: root/src/variabledata.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/variabledata.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/variabledata.h')
-rw-r--r--src/variabledata.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/variabledata.h b/src/variabledata.h
index 483eab951..625c077e7 100644
--- a/src/variabledata.h
+++ b/src/variabledata.h
@@ -41,7 +41,7 @@ class VariableData
virtual ~VariableData()
{};
- virtual int getType() const = 0;
+ virtual int getType() const A_WARN_UNUSED = 0;
};
class IntData final : public VariableData
@@ -51,10 +51,10 @@ class IntData final : public VariableData
mData(value)
{ }
- int getData() const
+ int getData() const A_WARN_UNUSED
{ return mData; }
- int getType() const override
+ int getType() const override A_WARN_UNUSED
{ return DATA_INT; }
private:
@@ -68,10 +68,10 @@ class StringData final : public VariableData
mData(value)
{ }
- const std::string &getData() const
+ const std::string &getData() const A_WARN_UNUSED
{ return mData; }
- int getType() const override
+ int getType() const override A_WARN_UNUSED
{ return DATA_STRING; }
private:
@@ -85,10 +85,10 @@ class FloatData final : public VariableData
mData(value)
{ }
- double getData() const
+ double getData() const A_WARN_UNUSED
{ return mData; }
- int getType() const override
+ int getType() const override A_WARN_UNUSED
{ return DATA_FLOAT; }
private:
@@ -102,10 +102,10 @@ class BoolData final : public VariableData
mData(value)
{ }
- bool getData() const
+ bool getData() const A_WARN_UNUSED
{ return mData; }
- int getType() const override
+ int getType() const override A_WARN_UNUSED
{ return DATA_BOOL; }
private: