From 8df098c2b1fb9d73b55c27a4b4dcd47690493d26 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 12 Aug 2022 09:31:16 +0200 Subject: [PATCH] BUILD: ring: forward-declare struct appctx to avoid a build warning When using ring.h standalone it emits warnings about appctx. Let's forward-declare it. --- include/haproxy/ring.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/haproxy/ring.h b/include/haproxy/ring.h index a3a55d8fb1..9e87407c68 100644 --- a/include/haproxy/ring.h +++ b/include/haproxy/ring.h @@ -26,6 +26,8 @@ #include #include +struct appctx; + struct ring *ring_new(size_t size); void ring_init(struct ring *ring, void* area, size_t size); struct ring *ring_resize(struct ring *ring, size_t size); -- 2.47.3