From 2cb72f5dcefdeffbb36636234e6ccb36282f8ae3 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Wed, 30 Nov 2022 08:16:19 +0100 Subject: [PATCH] disable warning related to unused parameter - #302 --- src/context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/context.cpp b/src/context.cpp index 90f9aaf0..e76bc4d2 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -30,9 +30,11 @@ class main_context final : public context { class dispatcher_context final : public context { private: boost::context::fiber - run_( boost::context::fiber && c) { #if (defined(BOOST_USE_UCONTEXT)||defined(BOOST_USE_WINFIB)) + run_( boost::context::fiber && c) { std::move( c).resume(); +#else + run_( boost::context::fiber &&) { #endif // execute scheduler::dispatch() return get_scheduler()->dispatch();