aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2014-12-12 17:45:46 +0100
committerEmilia Kasper <emilia@openssl.org>2014-12-15 13:12:44 +0100
commit9669d2e1ad7aaa539c3931955ec9dd56faa2dc3c (patch)
treebe2c9199b8fadc132e45da96a7f990c0583b5e91 /crypto/bn
parent24097938ad19acaaac00f4e8549bfe1a976d662d (diff)
downloadopenssl-9669d2e1ad7aaa539c3931955ec9dd56faa2dc3c.tar.gz
Fix unused variable warning
The temporary variable causes unused variable warnings in opt mode with clang, because the subsequent assert is compiled out. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/bn')
-rw-r--r--crypto/bn/bn_lcl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h
index c072ee750d..260f67b348 100644
--- a/crypto/bn/bn_lcl.h
+++ b/crypto/bn/bn_lcl.h
@@ -194,7 +194,9 @@ int RAND_pseudo_bytes(unsigned char *buf,int num);
#define bn_wcheck_size(bn, words) \
do { \
const BIGNUM *_bnum2 = (bn); \
- assert(words <= (_bnum2)->dmax && words >= (_bnum2)->top); \
+ assert((words) <= (_bnum2)->dmax && (words) >= (_bnum2)->top); \
+ /* avoid unused variable warning with NDEBUG */ \
+ (void)(_bnum2); \
} while(0)
#else /* !BN_DEBUG */