Update examples, tests & docs

Summary: related to T13242

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D26889
This commit is contained in:
Korina Šimičević
2023-12-07 15:41:31 +01:00
parent e0a0bafbf1
commit 0d778c6b59
15 changed files with 274 additions and 168 deletions

View File

@@ -216,7 +216,7 @@ struct varint_parser : x3::parser<varint_parser> {
template <typename It, typename Ctx, typename RCtx, typename Attr>
bool parse(
It& first, const It last,
const Ctx& ctx, RCtx& rctx, Attr& attr
const Ctx& ctx, RCtx&, Attr& attr
) const {
It iter = first;

View File

@@ -10,7 +10,9 @@
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/any_completion_handler.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/beast/http/field.hpp>
#include <boost/beast/websocket/rfc6455.hpp>
#include <boost/beast/websocket/stream_base.hpp>
#include <async_mqtt5/error.hpp>
@@ -133,7 +135,7 @@ public:
do_ws_handshake(std::move(ep), std::move(ap));
}
void do_ws_handshake(endpoint ep, authority_path ap) {
void do_ws_handshake(endpoint, authority_path ap) {
if constexpr (has_ws_handshake<Stream>) {
using namespace boost::beast;

View File

@@ -71,7 +71,7 @@ public:
void operator()(
on_read, typename Owner::stream_ptr stream_ptr,
std::array<std::size_t, 2> ord, error_code read_ec, size_t bytes_read,
error_code timer_ec
error_code
) {
if (!_owner.is_open())
return complete(asio::error::operation_aborted, bytes_read);