Skip to content

Commit

Permalink
test/msgr: silence warnings from -Wsign-compare
Browse files Browse the repository at this point in the history
The following warning appears during make:

ceph/src/test/msgr/test_msgr.cc: In member function ‘virtual void MessengerTest_MarkdownTest_Test::TestBody()’:
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 <[email protected]>
  • Loading branch information
joscollin committed May 30, 2017
1 parent 592d95e commit 80145b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/msgr/test_msgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ TEST_P(MessengerTest, MarkdownTest) {
client_msgr->start();

int i = 1000;
uint64_t last = 0;
int64_t last = 0;
bool equal = false;
uint64_t equal_count = 0;
while (i--) {
Expand Down

0 comments on commit 80145b4

Please sign in to comment.