From: Amos Jeffries Date: Wed, 7 Jun 2017 18:04:08 +0000 (+1200) Subject: Fix build on GCC-4 after rev.15177 X-Git-Tag: M-staged-PR71~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=828545d149a6c264a68ae8bfd2c34aad227d745e;p=thirdparty%2Fsquid.git Fix build on GCC-4 after rev.15177 --- diff --git a/src/security/Session.cc b/src/security/Session.cc index 57dbdd0064..9d33d2d7a0 100644 --- a/src/security/Session.cc +++ b/src/security/Session.cc @@ -326,7 +326,7 @@ remove_session_cb(SSL_CTX *, SSL_SESSION *sessionID) debugs(83, 5, "Request to remove corrupted or not valid SSL_SESSION"); int pos; - if (const auto slot = SessionCache->openForReading(reinterpret_cast(sessionID), pos)) { + if (SessionCache->openForReading(reinterpret_cast(sessionID), pos)) { SessionCache->closeForReading(pos); // TODO: // What if we are not able to remove the session?