mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 06:15:24 +02:00
Tidy up unused variable warnings
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -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_) ||
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user