Skip to content

Commit

Permalink
One more warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
King_DuckZ committed Aug 15, 2020
1 parent aba525d commit 0735de2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ChunkedReaderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@ class ChunkedReaderImpl : public DataReader {
}

void Log(const boost::asio::const_buffers_1 buffers, const char *tag) {
#if __cplusplus >= 201703L
[[maybe_unused]]
#endif
const auto buf_len = boost::asio::buffer_size(*buffers.begin());

#if __cplusplus < 201703L
static_cast<void>(buf_len);
#endif

// At the time of the implementation, there are never multiple buffers.
RESTC_CPP_LOG_TRACE_(tag << ' ' << "# " << buf_len
<< " bytes: "
Expand Down

0 comments on commit 0735de2

Please sign in to comment.