[Boost-bugs] [Boost C++ Libraries] #12338: compiler warnings in unused variables and typedef

Subject: [Boost-bugs] [Boost C++ Libraries] #12338: compiler warnings in unused variables and typedef
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-21 12:46:15


#12338: compiler warnings in unused variables and typedef
------------------------------+----------------------
 Reporter: anonymous | Owner: bgubenko
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interval
  Version: Boost 1.61.0 | Severity: Cosmetic
 Keywords: |
------------------------------+----------------------
 Compiling boost/numeric/interval gave compiler warnings.

 The following changes fixes these:
 {{{
 --- boost_1_61_0/boost/numeric/interval/arith2.hpp 2016-05-05
 23:13:19.000000000 +0200
 +++ b/boost/numeric/interval/arith2.hpp 2016-07-21 14:19:20.675084428
 +0200
 @@ -273,7 +273,6 @@
    if (interval_lib::detail::test_input(x)) return I::empty();
    assert(k > 0);
    if (k == 1) return x;
 - typename Policies::rounding rnd;
    typedef typename interval_lib::unprotect<I>::type R;
    if (!interval_lib::user::is_pos(x.upper())) {
      if (interval_lib::user::is_zero(x.upper())) {
 --- boost_1_61_0/boost/numeric/interval/utility.hpp 2016-05-05
 23:13:19.000000000 +0200
 +++ b/boost/numeric/interval/utility.hpp 2016-07-21
 14:19:54.064881144 +0200
 @@ -248,7 +248,6 @@
  template<class T, class Policies> inline
  T norm(const interval<T, Policies>& x)
  {
 - typedef interval<T, Policies> I;
    if (interval_lib::detail::test_input(x)) {
      typedef typename Policies::checking checking;
      return checking::nan();
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12338>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC