[openssl-commits] [openssl] OpenSSL source code branch OpenSSL_1_0_2-stable updated. OpenSSL_1_0_2-beta3-101-g6af16ec

Emilia Kasper emilia at openssl.org
Mon Dec 15 12:20:44 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSSL source code".

The branch, OpenSSL_1_0_2-stable has been updated
       via  6af16ec5eed85390bcbd004806a842d6153d6a31 (commit)
      from  d04a1e0b5beb3329cdf8c4ec35b9113cbc41d2f2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6af16ec5eed85390bcbd004806a842d6153d6a31
Author: Emilia Kasper <emilia at openssl.org>
Date:   Mon Dec 15 13:11:52 2014 +0100

    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 at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/bn/bn.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h
index 2e3fab9..84cad17 100644
--- a/crypto/bn/bn.h
+++ b/crypto/bn/bn.h
@@ -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 */


hooks/post-receive
-- 
OpenSSL source code


More information about the openssl-commits mailing list