Silence unused variables

This commit is contained in:
Vinnie Falco
2019-10-04 18:56:06 -07:00
parent 5f9c14af2e
commit 0f932d589b
7 changed files with 24 additions and 19 deletions

View File

@ -1,3 +1,9 @@
Version 270:
* Silence unused variables
--------------------------------------------------------------------------------
Version 269:
* Fix /permissive- missing include

View File

@ -828,28 +828,27 @@ private:
template<std::size_t N, std::size_t M, class CharT, class Traits>
void
operator+(
static_string<N, CharT, Traits>const& lhs,
static_string<M, CharT, Traits>const& rhs) = delete;
static_string<N, CharT, Traits>const&,
static_string<M, CharT, Traits>const&) = delete;
template<std::size_t N, class CharT, class Traits>
void
operator+(CharT const* lhs,
static_string<N, CharT, Traits>const& rhs) = delete;
operator+(CharT const*,
static_string<N, CharT, Traits>const&) = delete;
template<std::size_t N, class CharT, class Traits>
void
operator+(CharT lhs,
static_string<N, CharT, Traits> const& rhs) = delete;
operator+(CharT,
static_string<N, CharT, Traits> const&) = delete;
template<std::size_t N, class CharT, class Traits>
void
operator+(static_string<N, CharT, Traits> const& lhs,
CharT const* rhs) = delete;
operator+(static_string<N, CharT, Traits> const&,
CharT const*) = delete;
template<std::size_t N, class CharT, class Traits>
void
operator+(static_string<N, CharT, Traits> const& lhs,
CharT rhs) = delete;
operator+(static_string<N, CharT, Traits> const&, CharT) = delete;
//
// Non-member functions

View File

@ -527,8 +527,8 @@ finish(error_code& ec)
// operator<< is not supported for file_body
template<bool isRequest, class File, class Fields>
std::ostream&
operator<<(std::ostream& os, message<
isRequest, basic_file_body<File>, Fields> const& msg) = delete;
operator<<(std::ostream&, message<
isRequest, basic_file_body<File>, Fields> const&) = delete;
#endif
} // http

View File

@ -130,8 +130,8 @@ struct associated_allocator<
static type get(
boost::beast::handler<
boost::beast::no_ex,
boost::beast::intrusive_alloc> const& h,
Allocator const& a = Allocator()) noexcept
boost::beast::intrusive_alloc> const&,
Allocator const& = Allocator()) noexcept
{
return type{};
}
@ -150,8 +150,8 @@ struct associated_executor<
static type get(
boost::beast::handler<
boost::beast::intrusive_ex,
boost::beast::no_alloc> const& h,
Executor const& a = Executor()) noexcept
boost::beast::no_alloc> const&,
Executor const& = Executor()) noexcept
{
return type{};
}

View File

@ -204,8 +204,8 @@ struct associated_allocator<
using type = std::allocator<int>;
static type get(
boost::beast::legacy_handler const& h,
Allocator const& a = Allocator()) noexcept
boost::beast::legacy_handler const&,
Allocator const& = Allocator()) noexcept
{
return type{};
}

View File

@ -697,7 +697,6 @@ public:
test::connect(ws1.next_layer(), ws2.next_layer());
ws2.set_option(stream_base::decorator(make_big));
error_code ec;
ws2.async_accept(test::success_handler());
ws1.async_handshake("test", "/", test::success_handler());
ioc.run();

View File

@ -24,3 +24,4 @@ tcp::socket sock(ioc);
ssl::context ctx(ssl::context::tlsv12);
boost::ignore_unused(ec);