diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index 185539d3e..d325a3390 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -71,19 +71,39 @@ inline void to_utf8(UnicodeString const& input, std::string & target) struct value_null { template - value_null operator+ (T const& other) const { return *this; } + value_null operator+ (T const& other) const + { + boost::ignore_unused_variable_warning(other); + return *this; + } template - value_null operator- (T const& other) const { return *this; } + value_null operator- (T const& other) const + { + boost::ignore_unused_variable_warning(other); + return *this; + } template - value_null operator* (T const& other) const { return *this; } + value_null operator* (T const& other) const + { + boost::ignore_unused_variable_warning(other); + return *this; + } template - value_null operator/ (T const& other) const { return *this; } + value_null operator/ (T const& other) const + { + boost::ignore_unused_variable_warning(other); + return *this; + } template - value_null operator% (T const& other) const { return *this; } + value_null operator% (T const& other) const + { + boost::ignore_unused_variable_warning(other); + return *this; + } }; typedef boost::variant value_base; @@ -352,7 +372,7 @@ struct add : public boost::static_visitor { return lhs + rhs; } - + value_type operator() (UnicodeString const& lhs, value_null rhs) const { boost::ignore_unused_variable_warning(rhs);