QSslConfiguration - fix a warning

With non-OpenSSL backends parameters in setters are unused variables.

Change-Id: I2113042d39bd97adbe964089f5d7e93c1df31ec5
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Timur Pocheptsov 2020-02-13 10:04:57 +01:00
parent 8471d267f1
commit d5589bc494

View File

@ -1238,6 +1238,7 @@ void QSslConfiguration::setHandshakeMustInterruptOnError(bool interrupt)
#if QT_CONFIG(openssl)
d->reportFromCallback = interrupt;
#else
Q_UNUSED(interrupt);
qCWarning(lcSsl, "This operation requires OpenSSL as TLS backend");
#endif
}
@ -1275,6 +1276,7 @@ void QSslConfiguration::setMissingCertificateIsFatal(bool cannotRecover)
#if QT_CONFIG(openssl)
d->missingCertIsFatal = cannotRecover;
#else
Q_UNUSED(cannotRecover);
qCWarning(lcSsl, "Handling a missing certificate as a fatal error requires an OpenSSL backend");
#endif // openssl
}