Skip to content

Commit 088bcbd

Browse files
committed
Fixes #294 -- appease clang on unused variable.
1 parent a4057db commit 088bcbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,13 @@ struct http_async_connection
250250
body_callback_function_type callback,
251251
boost::system::error_code const& ec,
252252
std::size_t bytes_transferred) {
253-
static long short_read_error = 335544539;
253+
static const long short_read_error = 335544539;
254254
bool is_ssl_short_read_error =
255255
#ifdef BOOST_NETWORK_ENABLE_HTTPS
256256
ec.category() == asio::error::ssl_category &&
257257
ec.value() == short_read_error;
258258
#else
259-
false;
259+
false && short_read_error;
260260
#endif
261261
if (!ec || ec == boost::asio::error::eof || is_ssl_short_read_error) {
262262
logic::tribool parsed_ok;

0 commit comments

Comments
 (0)