]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: quic: fix warning during compilation using gcc-6.5
authorEmeric Brun <ebrun@haproxy.com>
Mon, 17 Jul 2023 16:33:44 +0000 (18:33 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Jul 2023 06:58:55 +0000 (08:58 +0200)
commitc0456f45c8aa3173a503dc8d4cd0d4e4f1b29a3b
tree56b8edda0d5f67c4c8164b5f27a06543598a59dd
parente5a17b0bc027875758aca3ebfe8f03d36a24117f
BUILD: quic: fix warning during compilation using gcc-6.5

Building with gcc-6.5:

src/quic_conn.c: In function 'send_retry':
src/quic_conn.c:6554:2: error: dereferencing type-punned pointer will break
strict-aliasing rules [-Werror=strict-aliasing]
   *((uint32_t *)((unsigned char *)&buf[i])) = htonl(qv->num);

This patch use write_n32 to set the value.

This could be backported until v2.6
src/quic_conn.c