Package: boost Version: 1.33.1-4 Severity: normal Tags: patch Along the same lines as #308291 and #322386, here's a patch to fix another warning about an unused variable.
/usr/include/boost/date_time/time_facet.hpp: At global scope: /usr/include/boost/date_time/time_facet.hpp: In instantiation of 'boost::date_time::time_facet<time_type, CharT, OutItrT>::time_facet(size_t) [with time_type = boost::posix_time::ptime, CharT = char, OutItrT = std::ostreambuf_iterator<char, std::char_traits<char> >]': /usr/include/boost/date_time/posix_time/posix_time_io.hpp:198: instantiated from 'std::basic_ostream<_CharT, _Traits>& boost::posix_time::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::posix_time::time_duration&) [with CharT = char, Traits = std::char_traits<char>]' /usr/include/boost/date_time/time_facet.hpp:200: warning: unused parameter 'a_ref'
diff -urN boost.old/date_time/time.hpp boost/date_time/time.hpp --- boost.old/date_time/time.hpp 2006-06-11 12:53:49.000000000 -0700 +++ boost/date_time/time.hpp 2006-06-11 12:50:14.000000000 -0700 @@ -77,14 +77,14 @@ /*! Optional bool parameter will return time zone as an offset * (ie "+07:00"). Empty string is returned for classes that do * not use a time_zone */ - std::string zone_name(bool as_offset=false) const + std::string zone_name(bool =false) const { return time_system::zone_name(time_); } /*! Optional bool parameter will return time zone as an offset * (ie "+07:00"). Empty string is returned for classes that do * not use a time_zone */ - std::string zone_abbrev(bool as_offset=false) const + std::string zone_abbrev(bool =false) const { return time_system::zone_name(time_); } diff -urN boost.old/date_time/time_facet.hpp boost/date_time/time_facet.hpp --- boost.old/date_time/time_facet.hpp 2006-06-11 12:53:49.000000000 -0700 +++ boost/date_time/time_facet.hpp 2006-06-11 12:37:46.000000000 -0700 @@ -197,7 +197,7 @@ #endif //! sets default formats for ptime, local_date_time, and time_duration - explicit time_facet(::size_t a_ref = 0) + explicit time_facet(::size_t = 0) //: base_type(standard_format), : base_type(default_time_format), m_time_duration_format(string_type(duration_sign_negative_only) + default_time_duration_format)
-- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16.4 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)