]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/osd: silence warnings from -Wsign-compare 17027/head
authorJos Collin <jcollin@redhat.com>
Tue, 15 Aug 2017 04:15:32 +0000 (09:45 +0530)
committerJos Collin <jcollin@redhat.com>
Tue, 15 Aug 2017 04:15:35 +0000 (09:45 +0530)
commite58e4c80203fff7c0b163d5bf0aa055e503f5ee4
treedd4aedec09d4b6f95e7f10dc9d98941cbd17b5d0
parent21d93377353ba8a9ef9580669491a4b420205312
test/osd: silence warnings from -Wsign-compare

The following warning appears during build:

In file included from ceph/src/test/osd/TestOSDMap.cc:2:0:
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/osd/TestOSDMap.cc:456: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/osd/TestOSDMap.cc