mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Tidy up some test warnings
This commit is contained in:
@ -4,6 +4,7 @@ Version 104:
|
||||
* Use #error in config.hpp
|
||||
* Only set -std=c++11 on Travis
|
||||
* Only set /permissive- on Appveyor
|
||||
* Tidy up some test warnings
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -45,6 +45,7 @@ private:
|
||||
Arg&&>::type
|
||||
extract(Arg&& arg, Vals& vals)
|
||||
{
|
||||
boost::ignore_unused(vals);
|
||||
return arg;
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ public:
|
||||
}
|
||||
|
||||
friend
|
||||
bool asio_handler_is_continuation(response_op* op)
|
||||
bool asio_handler_is_continuation(response_op*)
|
||||
{
|
||||
// VFALCO This will go away in Net-TS
|
||||
return false;
|
||||
|
@ -42,6 +42,7 @@ teardown(
|
||||
Socket& socket,
|
||||
error_code& ec)
|
||||
{
|
||||
boost::ignore_unused(role, socket, ec);
|
||||
/*
|
||||
If you are trying to use OpenSSL and this goes off, you need to
|
||||
add an include for <boost/beast/websocket/ssl.hpp>.
|
||||
@ -90,6 +91,7 @@ async_teardown(
|
||||
Socket& socket,
|
||||
TeardownHandler&& handler)
|
||||
{
|
||||
boost::ignore_unused(role, socket, handler);
|
||||
/*
|
||||
If you are trying to use OpenSSL and this goes off, you need to
|
||||
add an include for <boost/beast/websocket/ssl.hpp>.
|
||||
|
@ -91,7 +91,6 @@ fail(boost::system::error_code ec, char const* what)
|
||||
class connection
|
||||
: public std::enable_shared_from_this<connection>
|
||||
{
|
||||
std::ostream& log_;
|
||||
ws::stream<tcp::socket> ws_;
|
||||
tcp::endpoint ep_;
|
||||
std::size_t messages_;
|
||||
@ -106,15 +105,13 @@ class connection
|
||||
|
||||
public:
|
||||
connection(
|
||||
std::ostream& log,
|
||||
asio::io_service& ios,
|
||||
tcp::endpoint const& ep,
|
||||
std::size_t messages,
|
||||
bool deflate,
|
||||
report& rep,
|
||||
test_buffer const& tb)
|
||||
: log_(log)
|
||||
, ws_(ios)
|
||||
: ws_(ios)
|
||||
, ep_(ep)
|
||||
, messages_(messages)
|
||||
, rep_(rep)
|
||||
@ -286,7 +283,7 @@ main(int argc, char** argv)
|
||||
auto const deflate = static_cast<bool>(std::atoi(argv[7]));
|
||||
auto const work = (messages + workers - 1) / workers;
|
||||
test_buffer tb;
|
||||
for(auto i = trials; i; --i)
|
||||
for(auto i = trials; i != 0; --i)
|
||||
{
|
||||
report rep;
|
||||
boost::asio::io_service ios{1};
|
||||
@ -294,7 +291,6 @@ main(int argc, char** argv)
|
||||
{
|
||||
auto sp =
|
||||
std::make_shared<connection>(
|
||||
dout,
|
||||
ios,
|
||||
tcp::endpoint{address, port},
|
||||
work,
|
||||
|
Reference in New Issue
Block a user