Tidy up some test warnings

This commit is contained in:
Vinnie Falco
2017-08-09 17:13:56 -07:00
parent da8bc6594d
commit d8a1eef7a3
5 changed files with 7 additions and 7 deletions

View File

@ -4,6 +4,7 @@ Version 104:
* Use #error in config.hpp * Use #error in config.hpp
* Only set -std=c++11 on Travis * Only set -std=c++11 on Travis
* Only set /permissive- on Appveyor * Only set /permissive- on Appveyor
* Tidy up some test warnings
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -45,6 +45,7 @@ private:
Arg&&>::type Arg&&>::type
extract(Arg&& arg, Vals& vals) extract(Arg&& arg, Vals& vals)
{ {
boost::ignore_unused(vals);
return arg; return arg;
} }

View File

@ -90,7 +90,7 @@ public:
} }
friend friend
bool asio_handler_is_continuation(response_op* op) bool asio_handler_is_continuation(response_op*)
{ {
// VFALCO This will go away in Net-TS // VFALCO This will go away in Net-TS
return false; return false;

View File

@ -42,6 +42,7 @@ teardown(
Socket& socket, Socket& socket,
error_code& ec) error_code& ec)
{ {
boost::ignore_unused(role, socket, ec);
/* /*
If you are trying to use OpenSSL and this goes off, you need to If you are trying to use OpenSSL and this goes off, you need to
add an include for <boost/beast/websocket/ssl.hpp>. add an include for <boost/beast/websocket/ssl.hpp>.
@ -90,6 +91,7 @@ async_teardown(
Socket& socket, Socket& socket,
TeardownHandler&& handler) TeardownHandler&& handler)
{ {
boost::ignore_unused(role, socket, handler);
/* /*
If you are trying to use OpenSSL and this goes off, you need to If you are trying to use OpenSSL and this goes off, you need to
add an include for <boost/beast/websocket/ssl.hpp>. add an include for <boost/beast/websocket/ssl.hpp>.

View File

@ -91,7 +91,6 @@ fail(boost::system::error_code ec, char const* what)
class connection class connection
: public std::enable_shared_from_this<connection> : public std::enable_shared_from_this<connection>
{ {
std::ostream& log_;
ws::stream<tcp::socket> ws_; ws::stream<tcp::socket> ws_;
tcp::endpoint ep_; tcp::endpoint ep_;
std::size_t messages_; std::size_t messages_;
@ -106,15 +105,13 @@ class connection
public: public:
connection( connection(
std::ostream& log,
asio::io_service& ios, asio::io_service& ios,
tcp::endpoint const& ep, tcp::endpoint const& ep,
std::size_t messages, std::size_t messages,
bool deflate, bool deflate,
report& rep, report& rep,
test_buffer const& tb) test_buffer const& tb)
: log_(log) : ws_(ios)
, ws_(ios)
, ep_(ep) , ep_(ep)
, messages_(messages) , messages_(messages)
, rep_(rep) , rep_(rep)
@ -286,7 +283,7 @@ main(int argc, char** argv)
auto const deflate = static_cast<bool>(std::atoi(argv[7])); auto const deflate = static_cast<bool>(std::atoi(argv[7]));
auto const work = (messages + workers - 1) / workers; auto const work = (messages + workers - 1) / workers;
test_buffer tb; test_buffer tb;
for(auto i = trials; i; --i) for(auto i = trials; i != 0; --i)
{ {
report rep; report rep;
boost::asio::io_service ios{1}; boost::asio::io_service ios{1};
@ -294,7 +291,6 @@ main(int argc, char** argv)
{ {
auto sp = auto sp =
std::make_shared<connection>( std::make_shared<connection>(
dout,
ios, ios,
tcp::endpoint{address, port}, tcp::endpoint{address, port},
work, work,