Skip to content

Commit 0735de2

Browse files
author
King_DuckZ
committed
One more warning fix
1 parent aba525d commit 0735de2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: src/ChunkedReaderImpl.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,15 @@ class ChunkedReaderImpl : public DataReader {
4646
}
4747

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

54+
#if __cplusplus < 201703L
55+
static_cast<void>(buf_len);
56+
#endif
57+
5158
// At the time of the implementation, there are never multiple buffers.
5259
RESTC_CPP_LOG_TRACE_(tag << ' ' << "# " << buf_len
5360
<< " bytes: "

0 commit comments

Comments
 (0)