crypto: silence unused variable warning
authorBen Noordhuis <info@bnoordhuis.nl>
Sun, 22 Jan 2012 17:19:10 +0000 (18:19 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 22 Jan 2012 17:20:03 +0000 (18:20 +0100)
`retry` is not used if SSL_PRINT_DEBUG is not defined.

src/node_crypto.cc

index 9f73df3..5274120 100644 (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);