Fix unused parameter warnings in tests

This commit is contained in:
Mohammad Nejati
2024-03-29 06:47:11 +00:00
committed by Mohammad Nejati
parent 3d2f982255
commit bcd65c828e
4 changed files with 7 additions and 7 deletions

View File

@@ -52,13 +52,13 @@ class immediate_executor
}
bool
operator==(immediate_executor const &other) const noexcept
operator==(immediate_executor const &) const noexcept
{
return true;
}
bool
operator!=(immediate_executor const &other) const noexcept
operator!=(immediate_executor const &) const noexcept
{
return false;
}

View File

@@ -230,7 +230,7 @@ public:
template<class F, class Alloc>
void
post(F&& f, Alloc const& a)
post(F&&, Alloc const&)
{
// shouldn't be called since the enclosing
// networking wrapper only uses dispatch
@@ -239,7 +239,7 @@ public:
template<class F, class Alloc>
void
defer(F&& f, Alloc const& a)
defer(F&&, Alloc const&)
{
// shouldn't be called since the enclosing
// networking wrapper only uses dispatch

View File

@@ -46,7 +46,7 @@ public:
}
void
operator()(system::error_code ec_ = {})
operator()(system::error_code = {})
{
failed_ = false;
}

View File

@@ -32,7 +32,7 @@ struct async_all_server_op : boost::asio::coroutine
async_all_server_op(stream<asio::ip::tcp::socket> & ws) : ws(ws) {}
template<typename Self>
void operator()(Self && self, error_code ec = {}, std::size_t sz = 0)
void operator()(Self && self, error_code ec = {}, std::size_t = 0)
{
if (ec)
return self.complete(ec);
@@ -81,7 +81,7 @@ struct async_all_client_op : boost::asio::coroutine
std::shared_ptr<impl_t> impl{std::make_shared<impl_t>()};
template<typename Self>
void operator()(Self && self, error_code ec = {}, std::size_t sz = 0)
void operator()(Self && self, error_code ec = {}, std::size_t = 0)
{
if (ec)
return self.complete(ec);