]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4663: GCC compile errors with optimization level -O3
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 12 Feb 2017 02:25:16 +0000 (15:25 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 12 Feb 2017 02:25:16 +0000 (15:25 +1300)
src/security/Handshake.cc

index f0060e843d328f3d8cb382ce95fdfbf913886150..efd27940a54ca5971290447a2513e32efa790ca3 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.
+    debugs(83, 2, "TLS parsing is not supported without OpenSSL. " <<
+           raw << ", cert=" << pCert.get());
 #endif
 }