]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: h3: fix compilation with USE_TRACE=0 flx04/quic-interop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 Jun 2026 09:47:57 +0000 (11:47 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 Jun 2026 09:47:57 +0000 (11:47 +0200)
Mark argument in h3_trace_header as unused if USE_TRACE is not set.

No need to backport unless HTTP/3 header traces are picked.

src/h3.c

index 7b469df458b044a16877aa804d9e1efa58bb1e48..071206b7a9ec04324f327b514d8ce9377cb2a277 100644 (file)
--- a/src/h3.c
+++ b/src/h3.c
@@ -639,7 +639,8 @@ static void _h3_trace_header(const struct ist n, const struct ist v,
                              const struct qcc *qcc, const struct qcs *qcs)
 {
        struct ist n_short, v_short;
-       const char *c_str, *s_str;
+       const char *c_str __maybe_unused;
+       const char *s_str __maybe_unused;
 
        chunk_reset(&trash);
        c_str = chunk_newstr(&trash);