From 088bcbda09b5b24132a7f585bde7d5ee84d8a3d2 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Tue, 10 Sep 2013 14:10:16 +1000 Subject: [PATCH] Fixes #294 -- appease clang on unused variable. --- .../network/protocol/http/client/connection/async_normal.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boost/network/protocol/http/client/connection/async_normal.hpp b/boost/network/protocol/http/client/connection/async_normal.hpp index 96c96a9bd..a1435be5a 100644 --- a/boost/network/protocol/http/client/connection/async_normal.hpp +++ b/boost/network/protocol/http/client/connection/async_normal.hpp @@ -250,13 +250,13 @@ struct http_async_connection body_callback_function_type callback, boost::system::error_code const& ec, std::size_t bytes_transferred) { - static long short_read_error = 335544539; + static const long short_read_error = 335544539; bool is_ssl_short_read_error = #ifdef BOOST_NETWORK_ENABLE_HTTPS ec.category() == asio::error::ssl_category && ec.value() == short_read_error; #else - false; + false && short_read_error; #endif if (!ec || ec == boost::asio::error::eof || is_ssl_short_read_error) { logic::tribool parsed_ok;