From 9d3abc891ed419bd1247fc939c8b2a2977d3d126 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 15 Jan 2021 17:08:38 +0100 Subject: [PATCH] BUILD: peers: fix build warning about unused variable Previous commit da2b0844f ("MINOR: peers: Add traces for peer control messages.") introduced a build warning on some compiler versions after the removal of variable "peers" in peer_send_msgs() because variable "s" was used only to assign this one, and variable "si" to assign "s". Let's remove both to fix the warning. No backport is needed. (cherry picked from commit 81d7092dbd25db04cc72d2dca77647d548342256) Signed-off-by: Christopher Faulet --- src/peers.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/peers.c b/src/peers.c index 595d9c9..a530a33 100644 --- a/src/peers.c +++ b/src/peers.c @@ -2168,8 +2168,6 @@ static inline int peer_send_msgs(struct appctx *appctx, struct peer *peer, struct peers *peers) { int repl; - struct stream_interface *si = appctx->owner; - struct stream *s = si_strm(si); /* Need to request a resync */ if ((peer->flags & PEER_F_LEARN_ASSIGN) && -- 1.7.10.4