]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/BUILD: debug: fix unused variable error
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 29 Mar 2024 16:17:35 +0000 (17:17 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 29 Mar 2024 16:21:04 +0000 (17:21 +0100)
commitda03396bb3a15b94c5514b3f4e10478e5bbabc3a
tree6dde9885c4429a37f9785aaaeabd72422b79ebf4
parent3c6dfa618a57fe71082b1681d1b9fb443b8af04a
BUG/BUILD: debug: fix unused variable error

A compilation error occurs when using DEBUG_MEM_STATS due to a variable
now being unused in debug_iohandler_memstats() :

src/debug.c: In function ‘debug_iohandler_memstats’:
src/debug.c:1862:24: error: unused variable ‘sc’ [-Werror=unused-variable]
 1862 |         struct stconn *sc = appctx_sc(appctx);
      |                        ^~

This is caused since the following commit :
  94b8ed446f70a381dde0ea2dc891b62fcc3cc8e1
  MEDIUM: cli/applet: Stop to test opposite SC in I/O handler of CLI commands

This must not be backported.
src/debug.c