Tidy up unused variable warnings

This commit is contained in:
Vinnie Falco
2017-10-23 20:17:56 -07:00
parent 1faac0b0fb
commit 8312c6eb86
3 changed files with 4 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ Version 126:
* Add CppCon2017 presentation link * Add CppCon2017 presentation link
* Update README.md * Update README.md
* Update stream write documentation for end of stream changes * Update stream write documentation for end of stream changes
* Tidy up unused variable warnings
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@@ -202,6 +202,7 @@ session_alloc_base<Context>::
pool_t:: pool_t::
dealloc(void* pv, std::size_t n) dealloc(void* pv, std::size_t n)
{ {
boost::ignore_unused(n);
auto& e = *(reinterpret_cast<element*>(pv) - 1); auto& e = *(reinterpret_cast<element*>(pv) - 1);
BOOST_ASSERT(e.size() == n); BOOST_ASSERT(e.size() == n);
if( (e.end() > buf_ + size_) || if( (e.end() > buf_ + size_) ||

View File

@@ -162,12 +162,14 @@ public:
pausation(pausation&& other) pausation(pausation&& other)
{ {
boost::ignore_unused(other);
BOOST_ASSERT(! other.base_); BOOST_ASSERT(! other.base_);
} }
pausation& pausation&
operator=(pausation&& other) operator=(pausation&& other)
{ {
boost::ignore_unused(other);
BOOST_ASSERT(! base_); BOOST_ASSERT(! base_);
BOOST_ASSERT(! other.base_); BOOST_ASSERT(! other.base_);
return *this; return *this;