Fix unused variable warning
[openssl.git] / crypto / bn / bn.h
index 2e3fab98dbcb7417350953200d307270f6c8d3ca..84cad1741e1a6149c87cf6a598cc8552a70ab418 100644 (file)
@@ -762,7 +762,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 */