]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: c_write_operations.cc: silence warning from -Wsign-compare 14889/head
authorJos Collin <jcollin@redhat.com>
Mon, 1 May 2017 06:25:08 +0000 (11:55 +0530)
committerJos Collin <jcollin@redhat.com>
Mon, 1 May 2017 06:25:24 +0000 (11:55 +0530)
commit861c2b0a1f76530ecf7aa96718bbb38dbd906ebd
treefed341ec64b7c429700c6519123e1dff29fe46b9
parent61a87c2c31bc06604d1b6ff4bd9efcdae817e43c
test: c_write_operations.cc: silence warning from -Wsign-compare

The following warning appears during make:

ceph/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 = long unsigned int; T2 = int]’:
ceph/src/googletest/googletest/include/gtest/gtest.h:1421: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]’
ceph/src/test/librados/c_write_operations.cc:246:3:   required from here
ceph/src/googletest/googletest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (lhs == rhs) {
       ~~~~^~~~~~

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/test/librados/c_write_operations.cc