From: Amos Jeffries Date: Sun, 12 Feb 2017 02:25:16 +0000 (+1300) Subject: Bug 4663: GCC compile errors with optimization level -O3 X-Git-Tag: M-staged-PR71~276 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d747393f382e22ed676c68a5fb75edf7f9601f6;p=thirdparty%2Fsquid.git Bug 4663: GCC compile errors with optimization level -O3 --- diff --git a/src/security/Handshake.cc b/src/security/Handshake.cc index f0060e843d..efd27940a5 100644 --- a/src/security/Handshake.cc +++ b/src/security/Handshake.cc @@ -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 }