]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
test/objectstore: fix a -Wsign-compare warning in compiling.
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Wed, 30 Mar 2016 02:36:49 +0000 (22:36 -0400)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Thu, 31 Mar 2016 04:08:21 +0000 (00:08 -0400)
commitc97ce4fc16e06a8ddc5a12c83ef5025cb4de4f79
tree235b52ad8c02ef2bc6a11ce781a69500d662f2cb
parent565ab25fdb008ab1b7ae6e6db9c182cf18055dbc
test/objectstore: fix a -Wsign-compare warning in compiling.

In file included from test/objectstore/store_test.cc:33:0:
../src/gmock/gtest/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = unsigned int; T2 = int]’:
../src/gmock/gtest/include/gtest/gtest.h:1524:23:   required from ‘static testing::AssertionResult testing::internal::EqHelper<true>::Compare(const char*, const char*, const T1&, const T2&, typename testing::internal::EnableIf<(! testing::internal::is_pointer<T2>::value)>::type*) [with T1 = unsigned int; T2 = int; typename testing::internal::EnableIf<(! testing::internal::is_pointer<T2>::value)>::type = void]’
test/objectstore/store_test.cc:1088:285:   required from here
../src/gmock/gtest/include/gtest/gtest.h:1448:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (expected == actual) {
                ^

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/test/objectstore/store_test.cc