From: gkinkie@gmail.com Date: Sat, 4 Mar 2023 04:53:55 +0000 (+0000) Subject: Fix build with clang v15 [-Wunused-but-set-variable] (#1296) X-Git-Tag: SQUID_7_0_1~469 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54f49e4167839d44e514eaa1578b5a701e00d01f;p=thirdparty%2Fsquid.git Fix build with clang v15 [-Wunused-but-set-variable] (#1296) Remove unused variable in neigbours.cc:neighborsUdpPing --- 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) {