From 7ce0ebe47c5a99ecc0af6fd97f88c5f6bed7a8f8 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Thu, 19 Sep 2024 08:32:04 +0000 Subject: [PATCH] Fix warnings in json_client example --- example/http/client/body/json_body.hpp | 9 ++++++--- example/http/client/body/json_client.cpp | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/example/http/client/body/json_body.hpp b/example/http/client/body/json_body.hpp index f3f98927..90e6a58e 100644 --- a/example/http/client/body/json_body.hpp +++ b/example/http/client/body/json_body.hpp @@ -32,8 +32,9 @@ struct json_body { using const_buffers_type = boost::asio::const_buffer; template - writer(boost::beast::http::header const& h, - value_type const& body) + writer( + boost::beast::http::header const&, + value_type const& body) { // The serializer holds a pointer to the value, so all we need to do is to reset it. serializer.reset(&body); @@ -65,7 +66,9 @@ struct json_body struct reader { template - reader(boost::beast::http::header& h, value_type& body) + reader( + boost::beast::http::header&, + value_type& body) : body(body) { } diff --git a/example/http/client/body/json_client.cpp b/example/http/client/body/json_client.cpp index 4cae9f85..c905e226 100644 --- a/example/http/client/body/json_client.cpp +++ b/example/http/client/body/json_client.cpp @@ -11,7 +11,7 @@ namespace http = beast::http; // from namespace net = boost::asio; // from using tcp = net::ip::tcp; // from -int main(int argc, char ** argv) +int main(int, char **) { // Our test endpoint for testing the json const auto host = "postman-echo.com";