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>
This commit is contained in:
parent
24097938ad
commit
9669d2e1ad
1 changed files with 3 additions and 1 deletions
|
@ -194,7 +194,9 @@ int RAND_pseudo_bytes(unsigned char *buf,int num);
|
||||||
#define bn_wcheck_size(bn, words) \
|
#define bn_wcheck_size(bn, words) \
|
||||||
do { \
|
do { \
|
||||||
const BIGNUM *_bnum2 = (bn); \
|
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)
|
} while(0)
|
||||||
|
|
||||||
#else /* !BN_DEBUG */
|
#else /* !BN_DEBUG */
|
||||||
|
|
Loading…
Reference in a new issue