]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4663: GCC compile errors with optimization level -O3
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Feb 2017 04:29:18 +0000 (17:29 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Feb 2017 04:29:18 +0000 (17:29 +1300)
src/security/Handshake.cc

index f0060e843d328f3d8cb382ce95fdfbf913886150..7a073c574b6ea057283693000595c07160e4bb25 100644 (file)
@@ -545,6 +545,10 @@ Security::HandshakeParser::ParseCertificate(const SBuf &raw, Security::CertPoint
     pCert.resetWithoutLocking(x509);
     Must(x509); // successfully parsed
     Must(x509Pos == x509Start + raw.length()); // no leftovers
+#else
+    // workaround GCC -O3 error with unused variables. see bug 4663.
+    (void)pCert;
+    debugs(83, 2, "TLS parsing is not supported without OpenSSL. " << raw);
 #endif
 }