From 2ec64ce3200646b0faa734686f8b8c0438aa34fa Mon Sep 17 00:00:00 2001 From: alwaysprince05 Date: Thu, 24 Sep 2026 15:12:42 +0530 Subject: [PATCH] fix(stdexec): silence unused-parameter warning in __fuse_token_fn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The unstoppable-token overload of __fuse_token_fn::operator() takes the receiver's stop token but intentionally ignores it (the net token is just the sender's captured token. Mark the parameter [[maybe_unused]] so that including compiles cleanly with -Wall -Wextra -Werror on recent clang versions (e.g. Apple clang 21), where the warning fires on the uninstantiated template during header parsing. 🤖 Generated with Codebuff Co-Authored-By: Codebuff EOF ) --- include/stdexec/__detail/__stop_when.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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