mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Fix unused-result warning in deferred.cpp
This commit is contained in:
committed by
Mohammad Nejati
parent
c9858357f8
commit
6adca47bbe
@ -22,15 +22,15 @@ void test_deferred_for_http(
|
||||
http::serializer<true, http::empty_body> & ser,
|
||||
http::message<false, http::empty_body> & msg)
|
||||
{
|
||||
http::async_read(stream, buf, parser, asio::deferred);
|
||||
http::async_read(stream, buf, msg, asio::deferred);
|
||||
http::async_read_some(stream, buf, parser, asio::deferred);
|
||||
http::async_read_header(stream, buf, parser, asio::deferred);
|
||||
(void)http::async_read(stream, buf, parser, asio::deferred);
|
||||
(void)http::async_read(stream, buf, msg, asio::deferred);
|
||||
(void)http::async_read_some(stream, buf, parser, asio::deferred);
|
||||
(void)http::async_read_header(stream, buf, parser, asio::deferred);
|
||||
|
||||
http::async_write(stream, ser, asio::deferred);
|
||||
http::async_write(stream, msg, asio::deferred);
|
||||
http::async_write_header(stream, ser, asio::deferred);
|
||||
http::async_write_some(stream, ser, asio::deferred);
|
||||
(void)http::async_write(stream, ser, asio::deferred);
|
||||
(void)http::async_write(stream, msg, asio::deferred);
|
||||
(void)http::async_write_header(stream, ser, asio::deferred);
|
||||
(void)http::async_write_some(stream, ser, asio::deferred);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -21,23 +21,22 @@ void test_deferred_for_websocket(
|
||||
beast::http::request<beast::http::empty_body> & req,
|
||||
websocket::response_type & res)
|
||||
{
|
||||
stream.async_accept(asio::deferred);
|
||||
stream.async_accept(asio::const_buffer(), asio::deferred);
|
||||
stream.async_accept(req, asio::deferred);
|
||||
stream.async_close(websocket::close_code::bad_payload, asio::deferred);
|
||||
(void)stream.async_accept(asio::deferred);
|
||||
(void)stream.async_accept(asio::const_buffer(), asio::deferred);
|
||||
(void)stream.async_accept(req, asio::deferred);
|
||||
(void)stream.async_close(websocket::close_code::bad_payload, asio::deferred);
|
||||
|
||||
stream.async_handshake("", "/", asio::deferred);
|
||||
stream.async_handshake(res, "", "/", asio::deferred);
|
||||
(void)stream.async_handshake("", "/", asio::deferred);
|
||||
(void)stream.async_handshake(res, "", "/", asio::deferred);
|
||||
|
||||
stream.async_ping(websocket::ping_data{}, asio::deferred);
|
||||
stream.async_pong(websocket::ping_data{}, asio::deferred);
|
||||
(void)stream.async_ping(websocket::ping_data{}, asio::deferred);
|
||||
(void)stream.async_pong(websocket::ping_data{}, asio::deferred);
|
||||
|
||||
stream.async_read(buf, asio::deferred);
|
||||
stream.async_read_some(buf.data(), asio::deferred);
|
||||
|
||||
stream.async_write(buf.cdata(), asio::deferred);
|
||||
stream.async_write_some(true, buf.cdata(), asio::deferred);
|
||||
(void)stream.async_read(buf, asio::deferred);
|
||||
(void)stream.async_read_some(buf.data(), asio::deferred);
|
||||
|
||||
(void)stream.async_write(buf.cdata(), asio::deferred);
|
||||
(void)stream.async_write_some(true, buf.cdata(), asio::deferred);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user