Permalink
Browse files

crypto: silence unused variable warning

`retry` is not used if SSL_PRINT_DEBUG is not defined.
  • Loading branch information...
1 parent 8271800 commit 9edb9842742c0734a9063576ae283c86b90d0676 @bnoordhuis bnoordhuis committed Jan 22, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/node_crypto.cc
View
@@ -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);

0 comments on commit 9edb984

Please sign in to comment.