From: Alex Rousskov Date: Fri, 9 Jun 2017 18:19:00 +0000 (-0600) Subject: Make GCC v6 happier after r15183. GCC thinks "if (x)" does not use x. X-Git-Tag: M-staged-PR71~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba98516fe565c5c4631fadbc191d78a23f9ae97d;p=thirdparty%2Fsquid.git Make GCC v6 happier after r15183. GCC thinks "if (x)" does not use x. Same as r15186 but applied to tunnel.cc now. I hate code duplication. --- diff --git a/src/tunnel.cc b/src/tunnel.cc index c50bf70a9c..42001ea784 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -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");