Parcourir la source

[master] Fixed 2 unused arguments

Francis Dupont il y a 8 ans
Parent
commit
1bda76b314
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/lib/http/connection.cc

+ 2 - 2
src/lib/http/connection.cc

@@ -129,7 +129,7 @@ HttpConnection::acceptorCallback(const boost::system::error_code& ec) {
 }
 }
 
 
 void
 void
-HttpConnection::socketReadCallback(boost::system::error_code ec, size_t length) {
+HttpConnection::socketReadCallback(boost::system::error_code, size_t length) {
     std::string s(&buf_[0], buf_[0] + length);
     std::string s(&buf_[0], buf_[0] + length);
     parser_->postBuffer(static_cast<void*>(buf_.data()), length);
     parser_->postBuffer(static_cast<void*>(buf_.data()), length);
     parser_->poll();
     parser_->poll();
@@ -148,7 +148,7 @@ HttpConnection::socketReadCallback(boost::system::error_code ec, size_t length)
 }
 }
 
 
 void
 void
-HttpConnection::socketWriteCallback(boost::system::error_code ec,
+HttpConnection::socketWriteCallback(boost::system::error_code,
                                     size_t length) {
                                     size_t length) {
     if (length <= output_buf_.size()) {
     if (length <= output_buf_.size()) {
         output_buf_.erase(0, length);
         output_buf_.erase(0, length);