mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Silence unused variables
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
Version 270:
|
||||
|
||||
* Silence unused variables
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 269:
|
||||
|
||||
* Fix /permissive- missing include
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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{};
|
||||
}
|
||||
|
@ -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{};
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -24,3 +24,4 @@ tcp::socket sock(ioc);
|
||||
|
||||
ssl::context ctx(ssl::context::tlsv12);
|
||||
|
||||
boost::ignore_unused(ec);
|
||||
|
Reference in New Issue
Block a user