From 9edb9842742c0734a9063576ae283c86b90d0676 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 22 Jan 2012 18:19:10 +0100 Subject: [PATCH] crypto: silence unused variable warning `retry` is not used if SSL_PRINT_DEBUG is not defined. --- src/node_crypto.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 9f73df35caf..5274120e2cb 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -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);