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
* Update README.md
* 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::
dealloc(void* pv, std::size_t n)
{
boost::ignore_unused(n);
auto& e = *(reinterpret_cast<element*>(pv) - 1);
BOOST_ASSERT(e.size() == n);
if( (e.end() > buf_ + size_) ||

View File

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