diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bff01af..06709954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Version 171: * Add handler_ptr::has_value * Remove spurious assert +* Fix unused variable warning -------------------------------------------------------------------------------- diff --git a/include/boost/beast/core/impl/handler_ptr.ipp b/include/boost/beast/core/impl/handler_ptr.ipp index 99d1a894..06bdd81c 100644 --- a/include/boost/beast/core/impl/handler_ptr.ipp +++ b/include/boost/beast/core/impl/handler_ptr.ipp @@ -114,6 +114,7 @@ invoke(Args&&... args) clear(); auto deleter = [](Handler* h) { + boost::ignore_unused(h); // fix #1119 h->~Handler(); }; std::unique_ptr<