]> git.kaiwu.me - haproxy.git/commit
BUILD: quic: silence two invalid build warnings at -O1 with gcc-6.5
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2022 08:16:41 +0000 (09:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2022 08:16:41 +0000 (09:16 +0100)
commit33a6870fea5a204ab734dc723d1425330f537ec7
tree9b88584512e8dc2eb43f76fe7f7c45f7ace60a28
parentd2ff5dc3ebba1163749e2d874cce5892570f540a
BUILD: quic: silence two invalid build warnings at -O1 with gcc-6.5

Gcc 6.5 is now well known for triggering plenty of false "may be used
uninitialized", particularly at -O1, and two of them happen in quic,
quic_tp and quic_conn. Both of them were reviewed and easily confirmed
as wrong (gcc seems to ignore the control flow after the function
returns and believes error conditions are not met). Let's just preset
the variables that bothers it. In quic_tp the initialization was moved
out of the loop since there's no point inflating the code just to
silence a stupid warning.
src/quic_conn.c
src/quic_tp.c