From 990752086e35df7e47f46771e82a7e968b40c218 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 29 May 2018 11:23:25 +0200 Subject: [PATCH] amqp1 plugin: fix sign compare warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CC src/amqp1_la-amqp1.lo src/amqp1.c: In function ‘amqp1_send_out_messages’: src/amqp1.c:138:29: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] if (DEQ_SIZE(to_send) == link_credit) ^~ --- src/amqp1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amqp1.c b/src/amqp1.c index e60142b5..a6a2d35f 100644 --- a/src/amqp1.c +++ b/src/amqp1.c @@ -135,7 +135,7 @@ static int amqp1_send_out_messages(pn_link_t *link) /* {{{ */ while (cdm) { DEQ_REMOVE_HEAD(out_messages); DEQ_INSERT_TAIL(to_send, cdm); - if (DEQ_SIZE(to_send) == link_credit) + if (DEQ_SIZE(to_send) == (size_t)link_credit) break; cdm = DEQ_HEAD(out_messages); } -- 2.11.0