From fcb0bb36895aac0d479d13f8603eb5f8bc538d8f Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 15 Nov 2023 15:19:31 -0600 Subject: [PATCH 1/2] basic_sender: fix invalid GNU diagnostic ignore The proper GCC option has an 's': -Wunused-local-typedefs Adjust accordingly. Signed-off-by: Patrick Williams --- include/stdexec/__detail/__basic_sender.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdexec/__detail/__basic_sender.hpp b/include/stdexec/__detail/__basic_sender.hpp index b72e3e8bd..e2976e7ef 100644 --- a/include/stdexec/__detail/__basic_sender.hpp +++ b/include/stdexec/__detail/__basic_sender.hpp @@ -55,7 +55,7 @@ namespace stdexec { }; STDEXEC_PRAGMA_PUSH() - STDEXEC_PRAGMA_IGNORE_GNU("-Wunused-local-typedef") + STDEXEC_PRAGMA_IGNORE_GNU("-Wunused-local-typedefs") struct __get_meta { template From 2c95e858d0fe428fae2b773a4a0c1c4cdf5e1d99 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Fri, 19 May 2023 15:21:54 -0500 Subject: [PATCH 2/2] fix unused parameter warnings Signed-off-by: Patrick Williams --- include/stdexec/execution.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/stdexec/execution.hpp b/include/stdexec/execution.hpp index 5a10bd68a..3cd5684d4 100644 --- a/include/stdexec/execution.hpp +++ b/include/stdexec/execution.hpp @@ -671,7 +671,7 @@ namespace stdexec { ///////////////////////////////////////////////////////////////////////////// inline constexpr struct __get_early_domain_t { template - auto operator()(const _Sender& __sndr, _Default __def = {}) const noexcept { + auto operator()(const _Sender&, _Default __def = {}) const noexcept { if constexpr (__callable>) { return __call_result_t>(); } else if constexpr (__detail::__has_completion_domain<_Sender>) { @@ -5718,7 +5718,7 @@ namespace stdexec { } template - static auto __transform_sender_fn(const _Env& __env) { + static auto __transform_sender_fn(const _Env&) { return [&](__ignore, _Data&& __data, _Child&& __child) { auto __sched = get_completion_scheduler(__data); return schedule_from(std::move(__sched), (_Child&&) __child); @@ -6102,7 +6102,7 @@ namespace stdexec { template requires __is_not_instance_of<__id<__decay_t<_Sender>>, __sender> - static auto transform_sender(_Sender&& __sndr, const _Env& __env) { + static auto transform_sender(_Sender&& __sndr, const _Env&) { return __sexpr_apply( (_Sender&&) __sndr, [](__ignore, _Data&& __data, _Child&& __child) {