diff options
Diffstat (limited to '3rdparty/asio/src/tests/unit/generic/seq_packet_protocol.cpp')
-rw-r--r-- | 3rdparty/asio/src/tests/unit/generic/seq_packet_protocol.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/3rdparty/asio/src/tests/unit/generic/seq_packet_protocol.cpp b/3rdparty/asio/src/tests/unit/generic/seq_packet_protocol.cpp index e66012649b4..c4de03bc58b 100644 --- a/3rdparty/asio/src/tests/unit/generic/seq_packet_protocol.cpp +++ b/3rdparty/asio/src/tests/unit/generic/seq_packet_protocol.cpp @@ -2,7 +2,7 @@ // generic/seq_packet_protocol.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -93,14 +93,6 @@ void test() spp::socket::executor_type ex = socket1.get_executor(); (void)ex; -#if !defined(ASIO_NO_DEPRECATED) - io_context& ioc_ref = socket1.get_io_context(); - (void)ioc_ref; - - io_context& ioc_ref2 = socket1.get_io_service(); - (void)ioc_ref2; -#endif // !defined(ASIO_NO_DEPRECATED) - // basic_socket functions. spp::socket::lowest_layer_type& lowest_layer = socket1.lowest_layer(); @@ -158,10 +150,14 @@ void test() socket1.io_control(io_control_command, ec); spp::endpoint endpoint1 = socket1.local_endpoint(); + (void)endpoint1; spp::endpoint endpoint2 = socket1.local_endpoint(ec); + (void)endpoint2; spp::endpoint endpoint3 = socket1.remote_endpoint(); + (void)endpoint3; spp::endpoint endpoint4 = socket1.remote_endpoint(ec); + (void)endpoint4; socket1.shutdown(socket_base::shutdown_both); socket1.shutdown(socket_base::shutdown_both, ec); |