Skip to content

Commit 03efd34

Browse files
committed
Supressed unused parameter warnings.
1 parent f1f4a43 commit 03efd34

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

boost/network/protocol/http/client/connection/async_normal.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ struct http_async_connection
199199
body_generator_function_type generator,
200200
boost::system::error_code const& ec,
201201
std::size_t bytes_transferred) {
202+
(void)bytes_transferred;
203+
202204
if (!is_timedout_ && !ec) {
203205
if (generator) {
204206
// Here we write some more data that the generator provides,

boost/network/protocol/http/client/connection/async_protocol_handler.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ struct http_async_protocol_handler {
4646

4747
template <class ResponseType>
4848
void init_response(ResponseType& response_, bool get_body) {
49+
(void)get_body;
50+
4951
boost::shared_future<string_type> source_future(
5052
source_promise.get_future());
5153
source(response_, source_future);

boost/network/protocol/http/client/connection/sync_base.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,17 @@ struct sync_connection_base_impl {
102102
template <class Socket>
103103
void send_request_impl(Socket& socket_, string_type const& method,
104104
boost::asio::streambuf& request_buffer) {
105+
(void)method;
106+
105107
write(socket_, request_buffer);
106108
}
107109

108110
template <class Socket>
109111
void read_body_normal(Socket& socket_, basic_response<Tag>& response_,
110112
boost::asio::streambuf& response_buffer,
111113
typename ostringstream<Tag>::type& body_stream) {
114+
(void)response_;
115+
112116
boost::system::error_code error;
113117
if (response_buffer.size() > 0) body_stream << &response_buffer;
114118

boost/network/protocol/http/policies/pooled_connection.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ struct pooled_connection_policy : resolver_policy<Tag>::type {
6565
certificate_filename_(certificate_filename),
6666
verify_path_(verify_path),
6767
certificate_file_(certificate_file),
68-
private_key_file_(private_key_file) {}
68+
private_key_file_(private_key_file) {
69+
70+
(void)host;
71+
(void)port;
72+
}
6973

7074
basic_response<Tag> send_request(string_type const& method,
7175
basic_request<Tag> request_, bool get_body,
@@ -79,6 +83,8 @@ struct pooled_connection_policy : resolver_policy<Tag>::type {
7983
string_type const& method, basic_request<Tag> request_, bool get_body,
8084
body_callback_function_type callback,
8185
body_generator_function_type generator) {
86+
(void)callback;
87+
8288
boost::uint8_t count = 0;
8389
bool retry = false;
8490
do {

boost/network/protocol/http/policies/simple_connection.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ struct simple_connection_policy : resolver_policy<Tag>::type {
5050
optional<string_type> const& certificate_file = optional<string_type>(),
5151
optional<string_type> const& private_key_file = optional<string_type>())
5252
: pimpl(), follow_redirect_(follow_redirect) {
53+
54+
(void)hostname;
55+
(void)port;
56+
5357
pimpl.reset(impl::sync_connection_base<
5458
Tag, version_major,
5559
version_minor>::new_connection(resolver, resolve, https,
@@ -62,6 +66,8 @@ struct simple_connection_policy : resolver_policy<Tag>::type {
6266
basic_request<Tag> request_, bool get_body,
6367
body_callback_function_type callback,
6468
body_generator_function_type generator) {
69+
(void)callback;
70+
6571
basic_response<Tag> response_;
6672
do {
6773
pimpl->init_socket(request_.host(),

0 commit comments

Comments
 (0)