2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-19 04:02:17 +00:00

Merge pull request #285 from anarthal/feature/remove-unused-warning

Suppressed unused variable warning in fiber_fcontext.hpp
This commit is contained in:
Oliver Kowalke
2025-01-24 17:05:44 +01:00
committed by GitHub

View File

@@ -23,6 +23,7 @@
#include <boost/assert.hpp>
#include <boost/config.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/core/ignore_unused.hpp>
#if defined(BOOST_NO_CXX14_STD_EXCHANGE)
#include <boost/context/detail/exchange.hpp>
@@ -372,6 +373,7 @@ public:
fiber resume() && {
BOOST_ASSERT( nullptr != fctx_);
detail::manage_exception_state exstate;
boost::ignore_unused(exstate);
return { detail::jump_fcontext(
#if defined(BOOST_NO_CXX14_STD_EXCHANGE)
detail::exchange( fctx_, nullptr),