fix unused parameter warnings

This commit is contained in:
artemp 2014-06-16 11:23:50 +01:00
parent 7eb8e25110
commit 91a523733b

View file

@ -423,8 +423,10 @@ struct sub : public boost::static_visitor<V>
} }
value_type operator() (value_unicode_string const& lhs, value_type operator() (value_unicode_string const& lhs,
value_unicode_string const& ) const value_unicode_string const& rhs) const
{ {
boost::ignore_unused_variable_warning(lhs);
boost::ignore_unused_variable_warning(rhs);
return value_type(); return value_type();
} }
@ -460,8 +462,10 @@ struct mult : public boost::static_visitor<V>
} }
value_type operator() (value_unicode_string const& lhs, value_type operator() (value_unicode_string const& lhs,
value_unicode_string const& ) const value_unicode_string const& rhs) const
{ {
boost::ignore_unused_variable_warning(lhs);
boost::ignore_unused_variable_warning(rhs);
return value_type(); return value_type();
} }
@ -500,7 +504,7 @@ struct div: public boost::static_visitor<V>
return lhs / rhs; return lhs / rhs;
} }
value_type operator() (value_bool lhs, value_bool rhs ) const value_type operator() (value_bool lhs, value_bool rhs) const
{ {
boost::ignore_unused_variable_warning(lhs); boost::ignore_unused_variable_warning(lhs);
boost::ignore_unused_variable_warning(rhs); boost::ignore_unused_variable_warning(rhs);
@ -508,8 +512,10 @@ struct div: public boost::static_visitor<V>
} }
value_type operator() (value_unicode_string const& lhs, value_type operator() (value_unicode_string const& lhs,
value_unicode_string const&) const value_unicode_string const& rhs) const
{ {
boost::ignore_unused_variable_warning(lhs);
boost::ignore_unused_variable_warning(rhs);
return value_type(); return value_type();
} }
@ -543,8 +549,10 @@ struct mod: public boost::static_visitor<V>
} }
value_type operator() (value_unicode_string const& lhs, value_type operator() (value_unicode_string const& lhs,
value_unicode_string const&) const value_unicode_string const& rhs) const
{ {
boost::ignore_unused_variable_warning(lhs);
boost::ignore_unused_variable_warning(rhs);
return value_type(); return value_type();
} }
@ -583,7 +591,7 @@ struct negate : public boost::static_visitor<V>
return -val; return -val;
} }
value_type operator() (value_null const& val) const value_type operator() (value_null val) const
{ {
return val; return val;
} }
@ -595,6 +603,7 @@ struct negate : public boost::static_visitor<V>
value_type operator() (value_unicode_string const& ustr) const value_type operator() (value_unicode_string const& ustr) const
{ {
boost::ignore_unused_variable_warning(ustr);
return value_type(); return value_type();
} }
}; };