From: Christopher Faulet Date: Tue, 20 Jun 2023 11:59:23 +0000 (+0200) Subject: CLEANUP: mux-h1: Remove useless __maybe_unused statement X-Git-Tag: v2.9-dev1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a150cfcfec7c5bb3b6ddb01a87df067e950ef97b;p=thirdparty%2Fhaproxy.git CLEANUP: mux-h1: Remove useless __maybe_unused statement h1_append_chunk_size() and h1_prepend_chunk_crlf() functions were marked as possibly unused to be able to add them in standalone commits. Now these functions are used, the __maybe_unused statement can be removed. --- diff --git a/src/mux_h1.c b/src/mux_h1.c index cab65a97bf..1bee1fa01e 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1423,7 +1423,7 @@ static void h1_prepend_chunk_size(struct buffer *buf, size_t chksz) /* Emit the chunksize followed by a CRLF after the data of the buffer * . Returns 0 on error. */ -static __maybe_unused int h1_append_chunk_size(struct buffer *buf, size_t chksz) +static int h1_append_chunk_size(struct buffer *buf, size_t chksz) { char tmp[10]; char *beg, *end; @@ -1442,7 +1442,7 @@ static __maybe_unused int h1_append_chunk_size(struct buffer *buf, size_t chksz) * starts with the byte before the buffer's head. The caller is responsible for * ensuring there is enough room left before the buffer's head for the string. */ -static __maybe_unused void h1_prepend_chunk_crlf(struct buffer *buf) +static void h1_prepend_chunk_crlf(struct buffer *buf) { char *head;