[Boost-bugs] [Boost C++ Libraries] #8851: unused variable warning in opt builds

Subject: [Boost-bugs] [Boost C++ Libraries] #8851: unused variable warning in opt builds
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-18 17:19:51


#8851: unused variable warning in opt builds
------------------------------+-------------------------
 Reporter: alex@… | Owner: danieljames
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: unordered
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 The following snippet from table.hpp:456 fails my opt build with unused
 variable warnings, treated as errors:

 {{{
         void swap_allocators(table& other, false_type)
         {
             // According to 23.2.1.8, if propagate_on_container_swap is
             // false the behaviour is undefined unless the allocators
             // are equal.
             BOOST_ASSERT(node_alloc() == other.node_alloc());
         }
 }}}

 Seems that BOOST_ASSERT is compiled away in opt builds. Easy fix, patch
 included.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8851>
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:13 UTC