diff options
author | Marius Kintel <marius@kintel.net> | 2012-04-03 23:45:38 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-04-03 23:45:38 (GMT) |
commit | d755dd61de6c3dd988ebe4eab005db145bbbb568 (patch) | |
tree | 2a518b1c419377b6ef52c064bf29a5254af2981e /src/value.cc | |
parent | 023ded046f4163eebc9bc540ad3555e23b4b8c85 (diff) |
Killed some warnings
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/value.cc b/src/value.cc index 6afb762..2602f32 100644 --- a/src/value.cc +++ b/src/value.cc @@ -201,7 +201,7 @@ public: #endif } - std::string operator()(const boost::blank &v) const { + std::string operator()(const boost::blank &) const { return "undef"; } @@ -292,7 +292,7 @@ Value Value::operator!() const class equals_visitor : public boost::static_visitor<bool> { public: - template <typename T, typename U> bool operator()(const T &op1, const U &op2) const { + template <typename T, typename U> bool operator()(const T &, const U &) const { return false; } @@ -324,7 +324,7 @@ bool Value::operator||(const Value &v) const class less_visitor : public boost::static_visitor<bool> { public: - template <typename T, typename U> bool operator()(const T &op1, const U &op2) const { + template <typename T, typename U> bool operator()(const T &, const U &) const { return false; } @@ -340,7 +340,7 @@ public: class greater_visitor : public boost::static_visitor<bool> { public: - template <typename T, typename U> bool operator()(const T &op1, const U &op2) const { + template <typename T, typename U> bool operator()(const T &, const U &) const { return false; } @@ -376,7 +376,7 @@ bool Value::operator<=(const Value &v) const class plus_visitor : public boost::static_visitor<Value> { public: - template <typename T, typename U> Value operator()(const T &op1, const U &op2) const { + template <typename T, typename U> Value operator()(const T &, const U &) const { return Value::undefined; } @@ -401,7 +401,7 @@ Value Value::operator+(const Value &v) const class minus_visitor : public boost::static_visitor<Value> { public: - template <typename T, typename U> Value operator()(const T &op1, const U &op2) const { + template <typename T, typename U> Value operator()(const T &, const U &) const { return Value::undefined; } @@ -611,7 +611,7 @@ public: return Value::undefined; } - template <typename T, typename U> Value operator()(const T &op1, const U &op2) const { + template <typename T, typename U> Value operator()(const T &, const U &) const { // std::cout << "generic bracket_visitor\n"; return Value::undefined; } |