Boost logo

Boost :

Subject: [boost] Fix some "unused variable" warnings
From: Martin Martin (martin_at_[hidden])
Date: 2012-10-18 11:36:33


Hi,

I'm using boost with clang++, with some style-related warnings turned on,
and got a few warnings for unused variables. Here's the patch; are you
interested in these changes? If so, is there a better way to get them to
you?

Thanks,
Martin

--- boost_1_51_0/boost/date_time/dst_rules.hpp 2008-02-27
15:00:24.000000000 -0500
+++ boost_1_51_0-fixed/boost/date_time/dst_rules.hpp 2012-10-18
09:31:08.433591299 -0400
@@ -369,11 +369,11 @@
                                            const time_duration_type&)
       {
         return is_not_in_dst;
       }

- static bool is_dst_boundary_day(date_type d)
+ static bool is_dst_boundary_day(date_type)
       {
         return false;
       }

       static time_duration_type dst_offset()
diff '--unified=5' -r boost_1_51_0/boost/optional/optional.hpp
boost_1_51_0-fixed/boost/optional/optional.hpp
--- boost_1_51_0/boost/optional/optional.hpp 2010-12-18 16:29:39.000000000
-0500
+++ boost_1_51_0-fixed/boost/optional/optional.hpp 2012-10-18
09:31:50.737591130 -0400
@@ -888,16 +888,16 @@
 // none vs optional<T> cases
 //

 template<class T>
 inline
-bool operator == ( none_t x, optional<T> const& y )
+bool operator == ( none_t, optional<T> const& y )
 { return equal_pointees(optional<T>() ,y); }

 template<class T>
 inline
-bool operator < ( none_t x, optional<T> const& y )
+bool operator < ( none_t, optional<T> const& y )
 { return less_pointees(optional<T>() ,y); }

 template<class T>
 inline
 bool operator != ( none_t x, optional<T> const& y )


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk