]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: stream-int: avoid a build warning when DEBUG is empty
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Mar 2022 10:11:31 +0000 (11:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Mar 2022 10:15:49 +0000 (11:15 +0100)
commit0c3205a541bab01ce7f2b0a5f594d157d8154659
tree4a67543fb9f25f7f4cdef820002071735090b770
parent1e5e5136eebb4ea18cd319d169b2a64d7010d3eb
BUILD: stream-int: avoid a build warning when DEBUG is empty

When no DEBUG_STRICT is enabled, we get this build warning:

  src/stream_interface.c: In function 'stream_int_chk_snd_conn':
  src/stream_interface.c:1198:28: warning: unused variable 'conn' [-Wunused-variable]
   1198 |         struct connection *conn = cs_conn(cs);
        |                            ^~~~

This was the result of the simplification of the code in commit
d1480cc8a ("BUG/MEDIUM: stream-int: do not rely on the connection error
once established") which removed the last user of this variable outside
of a BUG_ON().

If the patch above is backported, this one should be backported as well.
src/stream_interface.c