Skip to content

Commit

Permalink
Suppressed unused variable warning in fiber_fcontext.hpp
Browse files Browse the repository at this point in the history
close #284
  • Loading branch information
anarthal committed Jan 24, 2025
1 parent 1cfab77 commit cef5372
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 cef5372

Please sign in to comment.