]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make GCC v6 happier after r15183. GCC thinks "if (x)" does not use x.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 9 Jun 2017 18:19:00 +0000 (12:19 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 9 Jun 2017 18:19:00 +0000 (12:19 -0600)
Same as r15186 but applied to tunnel.cc now. I hate code duplication.

src/tunnel.cc

index c50bf70a9c25cf407a97a98438daf4e6454c1d9b..42001ea784be08f8841032bcbdf7f81470476212 100644 (file)
@@ -1220,7 +1220,7 @@ void
 TunnelStateData::noteDestinationsEnd(ErrorState *selectionError)
 {
     PeerSelectionInitiator::subscribed = false;
-    if (const bool wasBlocked = serverDestinations.empty()) {
+    if (serverDestinations.empty()) { // was blocked, waiting for more paths
 
         if (selectionError)
             return sendError(selectionError, "path selection has failed");