Commit 6af16ec5 authored by Emilia Kasper's avatar Emilia Kasper
Browse files

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: default avatarRich Salz <rsalz@openssl.org>
parent d04a1e0b
Loading
Loading
Loading
Loading
+3 −1
Changes for crypto/bn/bn.h: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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 */