Skip to content

Commit 81d7092

Browse files
committed
BUILD: peers: fix build warning about unused variable
Previous commit da2b084 ("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.
1 parent 6554742 commit 81d7092

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/peers.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,8 +2171,6 @@ static inline int peer_send_msgs(struct appctx *appctx,
21712171
struct peer *peer, struct peers *peers)
21722172
{
21732173
int repl;
2174-
struct stream_interface *si = appctx->owner;
2175-
struct stream *s = si_strm(si);
21762174

21772175
/* Need to request a resync */
21782176
if ((peer->flags & PEER_F_LEARN_ASSIGN) &&

0 commit comments

Comments
 (0)