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: Version 269:
* Fix /permissive- missing include * Fix /permissive- missing include

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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