crypto: silence unused variable warning

`retry` is not used if SSL_PRINT_DEBUG is not defined.
pull/22966/head
Ben Noordhuis 2012-01-22 18:19:10 +01:00
parent 827180097c
commit 9edb984274
1 changed files with 1 additions and 0 deletions

View File

@ -607,6 +607,7 @@ int Connection::HandleBIOError(BIO *bio, const char* func, int rv) {
if (rv >= 0) return rv;
int retry = BIO_should_retry(bio);
(void) retry; // unused if !defined(SSL_PRINT_DEBUG)
if (BIO_should_write(bio)) {
DEBUG_PRINT("[%p] BIO: %s want write. should retry %d\n", ssl_, func, retry);