From d755dd61de6c3dd988ebe4eab005db145bbbb568 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 4 Apr 2012 01:45:38 +0200 Subject: Killed some warnings 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 { public: - template bool operator()(const T &op1, const U &op2) const { + template 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 { public: - template bool operator()(const T &op1, const U &op2) const { + template bool operator()(const T &, const U &) const { return false; } @@ -340,7 +340,7 @@ public: class greater_visitor : public boost::static_visitor { public: - template bool operator()(const T &op1, const U &op2) const { + template 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 { public: - template Value operator()(const T &op1, const U &op2) const { + template 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 { public: - template Value operator()(const T &op1, const U &op2) const { + template Value operator()(const T &, const U &) const { return Value::undefined; } @@ -611,7 +611,7 @@ public: return Value::undefined; } - template Value operator()(const T &op1, const U &op2) const { + template Value operator()(const T &, const U &) const { // std::cout << "generic bracket_visitor\n"; return Value::undefined; } -- cgit v0.10.1