projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix unused variable warning
[openssl.git]
/
crypto
/
bn
/
bn_lcl.h
diff --git
a/crypto/bn/bn_lcl.h
b/crypto/bn/bn_lcl.h
index c072ee750de770bbe9f0eb5bf52a89aa13cfe442..260f67b348ee8a1a4928dfb8467810572c3a6627 100644
(file)
--- 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); \
#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 */
} while(0)
#else /* !BN_DEBUG */