they are pointed out by clang++.
Signed-off-by: Kefu Chai <kchai@redhat.com>
template <typename Func, typename T>
inline seastar::future<> dispatch(const char* what, T& who, Func&& func) {
return seastar::with_gate(pending_dispatch, std::forward<Func>(func)
- ).handle_exception([this, what, &who] (std::exception_ptr eptr) {
+ ).handle_exception([what, &who] (std::exception_ptr eptr) {
if (*eptr.__cxa_exception_type() == typeid(system_shutdown_exception)) {
gated_logger().debug(
"{}, {} skipped, system shutdown", who, what);
});
}
-void Client::ms_handle_reset(crimson::net::ConnectionRef c, bool is_replace)
+void Client::ms_handle_reset(crimson::net::ConnectionRef c, bool /* is_replace */)
{
- gate.dispatch_in_background(__func__, *this, [this, c, is_replace] {
+ gate.dispatch_in_background(__func__, *this, [this, c] {
if (conn == c) {
report_timer.cancel();
return reconnect();
});
}
-void Client::ms_handle_reset(crimson::net::ConnectionRef conn, bool is_replace)
+void Client::ms_handle_reset(crimson::net::ConnectionRef conn, bool /* is_replace */)
{
- gate.dispatch_in_background(__func__, *this, [this, conn, is_replace] {
+ gate.dispatch_in_background(__func__, *this, [this, conn] {
auto found = std::find_if(pending_conns.begin(), pending_conns.end(),
[peer_addr = conn->get_peer_addr()](auto& mc) {
return mc->is_my_peer(peer_addr);