Skip to content

Commit 73686ef

Browse files
committed
Fixed -Wunused warinings in Variant visitor
1 parent 76ce6fd commit 73686ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VariantVisitorRate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class VariantVisitorRate : public boost::static_visitor<boost::variant<int, std:
1818

1919
/// Overloads operator() to avoid operating on strings
2020
/// \throws MonitoringInternalException
21-
double operator()(const std::string& a, const std::string& b) const {
21+
double operator()(const std::string&, const std::string&) const {
2222
throw MonitoringInternalException("DerivedMetrics/VariantRateVisitor", "Cannot operate on string values");
2323
}
2424

@@ -32,7 +32,7 @@ class VariantVisitorRate : public boost::static_visitor<boost::variant<int, std:
3232
/// If arguments have different type an exception is raised
3333
/// \throws MonitoringInternalException
3434
template<typename T, typename U>
35-
double operator()(const T& a, const U& b) const {
35+
double operator()(const T&, const U&) const {
3636
throw MonitoringInternalException("DerivedMetrics/VariantRateVisitor", "Cannot operate on different types");
3737
}
3838
};

0 commit comments

Comments
 (0)