From dbe5eec91e69318454343da809f3832aa86cab39 Mon Sep 17 00:00:00 2001 From: edisonhello Date: Tue, 28 Dec 2021 21:09:14 +0800 Subject: Remove unused parameter name to avoid unused-parameter --- include/tgbot/net/HttpServer.h | 6 +++--- 1 file 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(); }); -- cgit v1.2.3