From: Willy Tarreau Date: Fri, 12 Aug 2022 07:31:16 +0000 (+0200) Subject: BUILD: ring: forward-declare struct appctx to avoid a build warning X-Git-Tag: v2.7-dev4~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8df098c2b1fb9d73b55c27a4b4dcd47690493d26;p=thirdparty%2Fhaproxy.git 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. --- 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);