diff options
author | edisonhello <edisonhello@hotmail.com> | 2021-12-28 21:09:14 +0800 |
---|---|---|
committer | edisonhello <edisonhello@hotmail.com> | 2021-12-28 21:09:14 +0800 |
commit | dbe5eec91e69318454343da809f3832aa86cab39 (patch) | |
tree | e9161d3b31ecb312f8e368b485f45a3b37cb5ff3 /include | |
parent | f74c3812a58086aa2a62d8ecfaeee97f493c803e (diff) |
Remove unused parameter name to avoid unused-parameter
Diffstat (limited to 'include')
-rw-r--r-- | include/tgbot/net/HttpServer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/tgbot/net/HttpServer.h b/include/tgbot/net/HttpServer.h index 2c94dcf..55c7f8e 100644 --- a/include/tgbot/net/HttpServer.h +++ b/include/tgbot/net/HttpServer.h @@ -102,7 +102,7 @@ protected: boost::asio::async_write( self->_socket, boost::asio::buffer(answer), - [](const boost::system::error_code& e, std::size_t n) { }); + [](const boost::system::error_code&, std::size_t) { }); return; } @@ -119,7 +119,7 @@ protected: boost::asio::async_read(_socket, *data, boost::asio::transfer_exactly(size - data->size()), - [self, data, size, headers](const boost::system::error_code& e, std::size_t n) { + [self, data, size, headers](const boost::system::error_code& e, std::size_t) { if (e) { std::cout << "error in HttpServer::Connection#_readBody: " << e << std::endl; return; @@ -138,7 +138,7 @@ protected: boost::asio::async_write( self->_socket, boost::asio::buffer(answer), - [](const boost::system::error_code& e, std::size_t n) { }); + [](const boost::system::error_code&, std::size_t) { }); self->_socket.close(); }); |