Skip to content

Commit

Permalink
Merge pull request #1142 from williamspatrick/main
Browse files Browse the repository at this point in the history
Fix some GCC warnings
  • Loading branch information
ericniebler authored Nov 17, 2023
2 parents 49cec0b + 2c95e85 commit 8e1901e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/stdexec/__detail/__basic_sender.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <class _Tag, class _Data, class... _Children>
Expand Down
6 changes: 3 additions & 3 deletions include/stdexec/execution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ namespace stdexec {
/////////////////////////////////////////////////////////////////////////////
inline constexpr struct __get_early_domain_t {
template <class _Sender, class _Default = default_domain>
auto operator()(const _Sender& __sndr, _Default __def = {}) const noexcept {
auto operator()(const _Sender&, _Default __def = {}) const noexcept {
if constexpr (__callable<get_domain_t, env_of_t<_Sender>>) {
return __call_result_t<get_domain_t, env_of_t<_Sender>>();
} else if constexpr (__detail::__has_completion_domain<_Sender>) {
Expand Down Expand Up @@ -5718,7 +5718,7 @@ namespace stdexec {
}

template <class _Env>
static auto __transform_sender_fn(const _Env& __env) {
static auto __transform_sender_fn(const _Env&) {
return [&]<class _Data, class _Child>(__ignore, _Data&& __data, _Child&& __child) {
auto __sched = get_completion_scheduler<set_value_t>(__data);
return schedule_from(std::move(__sched), (_Child&&) __child);
Expand Down Expand Up @@ -6102,7 +6102,7 @@ namespace stdexec {

template <class _Sender, class _Env>
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,
[]<class _Data, class _Child>(__ignore, _Data&& __data, _Child&& __child) {
Expand Down

0 comments on commit 8e1901e

Please sign in to comment.