Skip to content

Commit

Permalink
future.hh: drop unused parameters
Browse files Browse the repository at this point in the history
this change silence following warning:

include/seastar/core/future.hh:645:42: error: unused parameter ‘m’ [-Werror=unused-parameter]
645 | future_state(exception_future_marker m, future_state_base&& state) noexcept : future_state_base(std::move(state)) { }

Signed-off-by: Kefu Chai <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
tchaikov authored and avikivity committed Jun 6, 2022
1 parent 9303d1a commit 4b95e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/seastar/core/future.hh
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ struct future_state : public future_state_base, private internal::uninitialized
new (this) future_state(ready_future_marker(), std::forward<A>(a)...);
}
future_state(exception_future_marker, std::exception_ptr&& ex) noexcept : future_state_base(std::move(ex)) { }
future_state(exception_future_marker m, future_state_base&& state) noexcept : future_state_base(std::move(state)) { }
future_state(exception_future_marker, future_state_base&& state) noexcept : future_state_base(std::move(state)) { }
future_state(current_exception_future_marker m) noexcept : future_state_base(m) { }
future_state(nested_exception_marker m, future_state_base&& old) noexcept : future_state_base(m, std::move(old)) { }
future_state(nested_exception_marker m, future_state_base&& n, future_state_base&& old) noexcept : future_state_base(m, std::move(n), std::move(old)) { }
Expand Down

0 comments on commit 4b95e36

Please sign in to comment.