diff --git a/include/stdexec/__detail/__stop_when.hpp b/include/stdexec/__detail/__stop_when.hpp index 759cf0468..b14550e78 100644 --- a/include/stdexec/__detail/__stop_when.hpp +++ b/include/stdexec/__detail/__stop_when.hpp @@ -134,8 +134,8 @@ namespace STDEXEC template [[nodiscard]] constexpr auto - operator()(_SenderToken __sndr_token, _ReceiverToken __rcvr_token) const noexcept - -> _SenderToken + operator()(_SenderToken __sndr_token, + [[maybe_unused]] _ReceiverToken __rcvr_token) const noexcept -> _SenderToken { // when the receiver's stop token is unstoppable, the net token is just the // sender's captured token