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 :
  94b8ed446f
  MEDIUM: cli/applet: Stop to test opposite SC in I/O handler of CLI commands

This must not be backported.
This commit is contained in:
Amaury Denoyelle 2024-03-29 17:17:35 +01:00
parent 3c6dfa618a
commit da03396bb3

View File

@ -1859,7 +1859,6 @@ static int debug_parse_cli_memstats(char **args, char *payload, struct appctx *a
static int debug_iohandler_memstats(struct appctx *appctx) static int debug_iohandler_memstats(struct appctx *appctx)
{ {
struct dev_mem_ctx *ctx = appctx->svcctx; struct dev_mem_ctx *ctx = appctx->svcctx;
struct stconn *sc = appctx_sc(appctx);
struct mem_stats *ptr; struct mem_stats *ptr;
const char *pfx = ctx->match; const char *pfx = ctx->match;
int ret = 1; int ret = 1;