]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: fix signed/unsigned compare warning.
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 9 Jul 2015 03:05:03 +0000 (11:05 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 9 Jul 2015 13:37:11 +0000 (21:37 +0800)
commitcaae6c963d337df5b9bd0dd0d3144fedc0e90b0e
tree93b5dba656409d2e661a400ee2c33fde8ea4d99a
parent28c22974e718827a8590b73e4647b532ed324b34
test: fix signed/unsigned compare warning.

 In file included from test/objectstore/chain_xattr.cc:29: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 = long unsigned int; T2 =
int]’:
../src/gmock/gtest/include/gtest/gtest.h:1484:23:   required from
‘static testing::AssertionResult
testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*,
const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 =
int; bool lhs_is_null_literal = false]’
test/objectstore/chain_xattr.cc:205:314:   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: Jianpeng Ma <jianpeng.ma@intel.com>
src/test/objectstore/chain_xattr.cc