diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2021-12-29 00:48:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 00:48:15 +0300 |
commit | 406d8e4d87232491bc14fcbee4689378f6bf9414 (patch) | |
tree | e9161d3b31ecb312f8e368b485f45a3b37cb5ff3 | |
parent | f74c3812a58086aa2a62d8ecfaeee97f493c803e (diff) | |
parent | dbe5eec91e69318454343da809f3832aa86cab39 (diff) |
Merge pull request #196 from edisonhello/master
Remove unused parameter name to avoid unused-parameter
-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(); }); |