diff options
author | Kefu Chai <kchai@redhat.com> | 2018-11-13 09:45:10 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2018-11-14 17:59:02 +0100 |
commit | 0a517ec0ac50d760bae473911619e0fed8255581 (patch) | |
tree | 9dfc6a3b59ad303304877af4cc7c8830679b076f /src | |
parent | Merge pull request #25083 from iridescent-rsy/fix-typo (diff) | |
download | ceph-0a517ec0ac50d760bae473911619e0fed8255581.tar.xz ceph-0a517ec0ac50d760bae473911619e0fed8255581.zip |
os/tests: silence -Wsign-compare warning
silence warning like
In file included from
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/test/objectstore/store_test.cc:25:0:
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/googletest/googletest/include/gtest/gtest.h:
In instantiation of 'testing::AssertionResult
testing::internal::CmpHelperEQ(const char*, const char*, const T1&,
const T2&) [with T1 = int; T2 = long unsigned int]':
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/test/objectstore/store_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 7d1756f30ae..dd424b11443 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -7419,7 +7419,7 @@ TEST_P(StoreTest, mergeRegionTest) { final_len = (offset + chunk_size * 3 - 3) + (chunk_size * 2); bufferlist bl; r = store->read(ch, hoid, 0, final_len, bl); - ASSERT_EQ(r, final_len); + ASSERT_EQ(final_len, static_cast<uint64_t>(r)); } } #endif // WITH_BLUESTORE |