summaryrefslogtreecommitdiff
path: root/include/tgbot/net
diff options
context:
space:
mode:
authoredisonhello <edisonhello@hotmail.com>2021-12-28 21:09:14 +0800
committeredisonhello <edisonhello@hotmail.com>2021-12-28 21:09:14 +0800
commitdbe5eec91e69318454343da809f3832aa86cab39 (patch)
treee9161d3b31ecb312f8e368b485f45a3b37cb5ff3 /include/tgbot/net
parentf74c3812a58086aa2a62d8ecfaeee97f493c803e (diff)
Remove unused parameter name to avoid unused-parameter
Diffstat (limited to 'include/tgbot/net')
-rw-r--r--include/tgbot/net/HttpServer.h6
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();
});