]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: warning: comparison between signed and unsigned integer expressions 14705/head
authorJos Collin <jcollin@redhat.com>
Fri, 21 Apr 2017 06:07:41 +0000 (11:37 +0530)
committerJos Collin <jcollin@redhat.com>
Fri, 21 Apr 2017 06:07:46 +0000 (11:37 +0530)
commite320a4699e9c4efc3b2b0c0844dd6539eb5c3ff0
tree7527261b93d09212c8c8e736643163779db4e661
parentdee4f31cabb1399b6c8d23a2c442387382669780
test: warning: comparison between signed and unsigned integer expressions

The following warning appears during make:
[ 61%] Building CXX object src/test/CMakeFiles/unittest_simple_spin.dir/simple_spin.cc.o
In file included from ./src/test/simple_spin.cc:1:0:
./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 = unsigned int; T2 = int]’:
./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 = unsigned int; T2 = int; bool lhs_is_null_literal = false]’
./src/test/simple_spin.cc:49:3:   required from here
./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/simple_spin.cc