From f92e720d1890ae0dceea536dce1280cf45dc697a Mon Sep 17 00:00:00 2001 From: Sergei Semin Date: Thu, 26 Aug 2021 00:33:09 +0300 Subject: [PATCH] fix gtest_bit_io.cpp --- src/IO/tests/gtest_bit_io.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/IO/tests/gtest_bit_io.cpp b/src/IO/tests/gtest_bit_io.cpp index 2302a6c6135..53bc4c9ae82 100644 --- a/src/IO/tests/gtest_bit_io.cpp +++ b/src/IO/tests/gtest_bit_io.cpp @@ -1,3 +1,7 @@ +#if defined(__clang__) && __clang_major__ >= 13 +#pragma clang diagnostic ignored "-Wreserved-identifier" +#endif + #include #include @@ -158,7 +162,6 @@ TEST_P(BitIO, WriteAndRead) BitReader reader(data.data(), data.size()); - int bitpos = 0; int item = 0; for (const auto & bv : bits_and_vals) { @@ -172,7 +175,6 @@ TEST_P(BitIO, WriteAndRead) ASSERT_TRUE(BinaryEqual(getBits(bv.first, bv.second), reader.readBits(bv.first))); ++item; - bitpos += bv.first; } } }