boostorg / fiber

userland threads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning/error about unreferenced parameter in context.cpp

mojca opened this issue · comments

When building the code on Windows with MSVC 2022 with "treat warnings as errors" I'm getting the following error:

C:\build\__external\src\boost\libs\fiber\src\context.cpp(33,36): error C2220: the following warning is treated as an error [C:\build\_deps\boost-build\libs\fiber\boost_fiber.vcxproj]
C:\build\__external\src\boost\libs\fiber\src\context.cpp(33,36): warning C4100: 'c': unreferenced formal parameter [C:\build\_deps\boost-build\libs\fiber\boost_fiber.vcxproj]

fiber/src/context.cpp

Lines 33 to 39 in 3e17706

run_( boost::context::fiber && c) {
#if (defined(BOOST_USE_UCONTEXT)||defined(BOOST_USE_WINFIB))
std::move( c).resume();
#endif
// execute scheduler::dispatch()
return get_scheduler()->dispatch();
}

fixed, ty

Thank you very much.
Would it be possible to include this into the 1.81 release?