From 8312c6eb8629506d4ddc1f98e54b826d1ea30398 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Mon, 23 Oct 2017 20:17:56 -0700 Subject: [PATCH] Tidy up unused variable warnings --- CHANGELOG.md | 1 + example/common/session_alloc.hpp | 1 + include/boost/beast/websocket/detail/pausation.hpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfaa076e..32b32e78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 -------------------------------------------------------------------------------- diff --git a/example/common/session_alloc.hpp b/example/common/session_alloc.hpp index 40615e0a..87b21b97 100644 --- a/example/common/session_alloc.hpp +++ b/example/common/session_alloc.hpp @@ -202,6 +202,7 @@ session_alloc_base:: pool_t:: dealloc(void* pv, std::size_t n) { + boost::ignore_unused(n); auto& e = *(reinterpret_cast(pv) - 1); BOOST_ASSERT(e.size() == n); if( (e.end() > buf_ + size_) || diff --git a/include/boost/beast/websocket/detail/pausation.hpp b/include/boost/beast/websocket/detail/pausation.hpp index 74aa9dfa..f51ee103 100644 --- a/include/boost/beast/websocket/detail/pausation.hpp +++ b/include/boost/beast/websocket/detail/pausation.hpp @@ -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;