Commit 773a7807 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[5078] Small fixes for compilation with gcc.

parent cef569ce
......@@ -37,7 +37,7 @@ TestServerUnixSocket::bindServerSocket() {
}
void
TestServerUnixSocket::acceptHandler(const boost::system::error_code& ec) {
TestServerUnixSocket::acceptHandler(const boost::system::error_code&) {
server_socket_.async_read_some(boost::asio::buffer(&raw_buf_[0],
raw_buf_.size()),
boost::bind(&TestServerUnixSocket::
......@@ -45,7 +45,7 @@ TestServerUnixSocket::acceptHandler(const boost::system::error_code& ec) {
}
void
TestServerUnixSocket::readHandler(const boost::system::error_code& ec,
TestServerUnixSocket::readHandler(const boost::system::error_code&,
size_t bytes_transferred) {
if (!custom_response_.empty()) {
boost::asio::write(server_socket_, boost::asio::buffer(custom_response_.c_str(),
......
......@@ -184,7 +184,7 @@ public:
/// @brief Receive response from the server.
void receivePartialResponse() {
socket_.async_read_some(boost::asio::buffer(buf_),
socket_.async_read_some(boost::asio::buffer(buf_.data(), buf_.size()),
[this](const boost::system::error_code& ec,
std::size_t bytes_transferred) {
if (ec) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment