From a842ca1fcab63405c4894c8973fef6885af3edb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 8 Dec 2021 15:24:15 +0100 Subject: [PATCH] MINOR: quic: Compilation fix for quic_rx_packet_refinc() This was reported by the CI wich clang as compilator. In file included from src/ssl_sock.c:80: include/haproxy/xprt_quic.h:1100:50: error: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign] } while (refcnt && !HA_ATOMIC_CAS(&pkt->refcnt, &refcnt, refcnt - 1)); ^~~~~~~ --- include/haproxy/xprt_quic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/xprt_quic.h b/include/haproxy/xprt_quic.h index 574268808..97625b440 100644 --- a/include/haproxy/xprt_quic.h +++ b/include/haproxy/xprt_quic.h @@ -1093,7 +1093,7 @@ static inline void quic_rx_packet_refinc(struct quic_rx_packet *pkt) /* Decrement the reference counter of while remaining positive */ static inline void quic_rx_packet_refdec(struct quic_rx_packet *pkt) { - int refcnt; + unsigned int refcnt; do { refcnt = HA_ATOMIC_LOAD(&pkt->refcnt);