]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEAN: mux-h1: Remove useless __maybe_unused attribute on h1_make_chunk()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Oct 2023 09:24:54 +0000 (11:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 16:51:13 +0000 (18:51 +0200)
This attribute was added during the dev stage. But it is useless now the
function is used. So, just remove it.

src/mux_h1.c

index d098c1b29eb9ea2c7046b5acc00efed3ff386643..500d4c0aa9abdb114defc91ca5ebc4a148c95895 100644 (file)
@@ -3000,7 +3000,7 @@ static size_t h1_make_trailers(struct h1s *h1s, struct h1m *h1m, struct htx *htx
 /* Try to send the header for a chunk of <len> bytes. It returns the number of
  * bytes consumed or zero if nothing was done or if an error occurred..
  */
-static __maybe_unused size_t h1_make_chunk(struct h1s *h1s, struct h1m * h1m, size_t len)
+static size_t h1_make_chunk(struct h1s *h1s, struct h1m * h1m, size_t len)
 {
        struct h1c *h1c = h1s->h1c;
        struct buffer outbuf;