From 54f49e4167839d44e514eaa1578b5a701e00d01f Mon Sep 17 00:00:00 2001 From: "gkinkie@gmail.com" Date: Sat, 4 Mar 2023 04:53:55 +0000 Subject: [PATCH] Fix build with clang v15 [-Wunused-but-set-variable] (#1296) Remove unused variable in neigbours.cc:neighborsUdpPing --- src/neighbors.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/neighbors.cc b/src/neighbors.cc index 766d912e6c..cf03505159 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -605,7 +605,6 @@ neighborsUdpPing(HttpRequest * request, int i; int reqnum = 0; int flags; - int queries_sent = 0; int peers_pinged = 0; int parent_timeout = 0, parent_exprep = 0; int sibling_timeout = 0, sibling_exprep = 0; @@ -681,8 +680,6 @@ neighborsUdpPing(HttpRequest * request, } } - ++queries_sent; - ++ p->stats.pings_sent; if (p->type == PEER_MULTICAST) { -- 2.47.2