From e64b4c864c4f5c346818f97c4fab07ac4c073e14 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Thu, 8 Jun 2017 16:48:20 +0530 Subject: [PATCH] test/msgr: silence warnings from -Wsign-compare MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/test/msgr/test_msgr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/msgr/test_msgr.cc b/src/test/msgr/test_msgr.cc index 4d43dc69499..3a9397be9a6 100644 --- a/src/test/msgr/test_msgr.cc +++ b/src/test/msgr/test_msgr.cc @@ -1461,7 +1461,7 @@ TEST_P(MessengerTest, MarkdownTest) { client_msgr->start(); int i = 1000; - int64_t last = 0; + uint64_t last = 0; bool equal = false; uint64_t equal_count = 0; while (i--) { -- 2.39.5