]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test: silence warning from -Wsign-compare
authorJos Collin <jcollin@redhat.com>
Mon, 1 May 2017 03:37:43 +0000 (09:07 +0530)
committerJos Collin <jcollin@redhat.com>
Mon, 1 May 2017 03:37:48 +0000 (09:07 +0530)
commit74ca5837a3e4fcd307f5b86743e099f20a487594
treef05c65967b2b47c384b5984d213bf7a95dc95efd
parent61a87c2c31bc06604d1b6ff4bd9efcdae817e43c
test: silence warning from -Wsign-compare

The following warning appears during make:
In file included from ceph/src/test/librados/TestCase.h:9:0,
                 from ceph/src/test/librados/c_read_operations.cc:10:
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 = int; T2 = long unsigned 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 = int; T2 = long unsigned int; bool lhs_is_null_literal = false]’
ceph/src/test/librados/c_read_operations.cc:685: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_read_operations.cc