]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: ssl: address a recent build warning when QUIC is enabled
authorWilly Tarreau <w@1wt.eu>
Wed, 10 Sep 2025 08:43:08 +0000 (10:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Sep 2025 08:44:33 +0000 (10:44 +0200)
commitbdff3941952674e741eef95ad1c043be5bbbd361
tree65efffab477984556e20b69aa8e69f130d7e43ce
parentd4c51a4f57fd965c2681e3a64c4bfe1611cf0867
BUILD: ssl: address a recent build warning when QUIC is enabled

Since commit 5ab9954faa ("MINOR: ssl: Add a flag to let it known we have
an ALPN negociated"), when building with QUIC we get this warning:

  src/ssl_sock.c: In function 'ssl_sock_advertise_alpn_protos':
  src/ssl_sock.c:2189:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

Let's just move the instructions after the optional declaration. No
backport is needed.
src/ssl_sock.c