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:
parent
8471d267f1
commit
d5589bc494
@ -1238,6 +1238,7 @@ void QSslConfiguration::setHandshakeMustInterruptOnError(bool interrupt)
|
|||||||
#if QT_CONFIG(openssl)
|
#if QT_CONFIG(openssl)
|
||||||
d->reportFromCallback = interrupt;
|
d->reportFromCallback = interrupt;
|
||||||
#else
|
#else
|
||||||
|
Q_UNUSED(interrupt);
|
||||||
qCWarning(lcSsl, "This operation requires OpenSSL as TLS backend");
|
qCWarning(lcSsl, "This operation requires OpenSSL as TLS backend");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -1275,6 +1276,7 @@ void QSslConfiguration::setMissingCertificateIsFatal(bool cannotRecover)
|
|||||||
#if QT_CONFIG(openssl)
|
#if QT_CONFIG(openssl)
|
||||||
d->missingCertIsFatal = cannotRecover;
|
d->missingCertIsFatal = cannotRecover;
|
||||||
#else
|
#else
|
||||||
|
Q_UNUSED(cannotRecover);
|
||||||
qCWarning(lcSsl, "Handling a missing certificate as a fatal error requires an OpenSSL backend");
|
qCWarning(lcSsl, "Handling a missing certificate as a fatal error requires an OpenSSL backend");
|
||||||
#endif // openssl
|
#endif // openssl
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user