]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: quic: fix unused variable warning when threads are disabled
authorWilly Tarreau <w@1wt.eu>
Fri, 24 May 2024 09:04:30 +0000 (11:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 May 2024 09:51:41 +0000 (11:51 +0200)
commit51f9f6cfd49d816017ffbac884c0b5b88cc67e32
treef581026dd9a9f1d42b9f8fb94a7b56c26d82b7f7
parent381ed2a4dda4e0ddd0bd84cb40e0dd2ae912733b
BUILD: quic: fix unused variable warning when threads are disabled

The tree variable was introduced in 3.0 by commit dd58dff1e6
("BUG/MEDIUM: quic: QUIC CID removed from tree without locking") which
was marked for backport. The variable is only used for locks.
Let's just mark the variable __maybe_unused for when the code is
built without threads.

The patch above was marked for backport to 2.7 so this should be
backported wherever the fix was backported.
src/quic_rx.c