]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/msgr: silence warnings from -Wsign-compare 15570/head
authorJos Collin <jcollin@redhat.com>
Thu, 8 Jun 2017 11:18:20 +0000 (16:48 +0530)
committerJos Collin <jcollin@redhat.com>
Thu, 8 Jun 2017 11:18:24 +0000 (16:48 +0530)
commite64b4c864c4f5c346818f97c4fab07ac4c073e14
tree5403a6dc98d625a2f6f1ddc3dd5ffc4a8291cbc0
parent40e84a131d8967c5ed3be3e5897d34e05ab359e4
test/msgr: silence warnings from -Wsign-compare

The following warning appears during make in the latest code:

ceph/src/test/msgr/test_msgr.cc:1474:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     CHECK_AND_WAIT_TRUE(srv_dispatcher.count > last + 1);
                         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
ceph/src/test/msgr/test_msgr.cc:54:9: note: in definition of macro ‘CHECK_AND_WAIT_TRUE’
     if (expr)                           \
         ^~~~
ceph/src/test/msgr/test_msgr.cc:1475:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (srv_dispatcher.count == last) {

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