Skip to content

Commit

Permalink
Merge pull request #285 from anarthal/feature/remove-unused-warning
Browse files Browse the repository at this point in the history
Suppressed unused variable warning in fiber_fcontext.hpp
  • Loading branch information
olk authored Jan 24, 2025
2 parents 1cfab77 + cef5372 commit 8bf61ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/boost/context/fiber_fcontext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -372,6 +373,7 @@ class fiber {
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),
Expand Down

0 comments on commit 8bf61ae

Please sign in to comment.