[openssl-commits] [openssl] OpenSSL source code branch master updated. 9669d2e1ad7aaa539c3931955ec9dd56faa2dc3c

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, master has been updated
       via  9669d2e1ad7aaa539c3931955ec9dd56faa2dc3c (commit)
      from  24097938ad19acaaac00f4e8549bfe1a976d662d (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 9669d2e1ad7aaa539c3931955ec9dd56faa2dc3c
Author: Emilia Kasper <emilia at openssl.org>
Date:   Fri Dec 12 17:45:46 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_lcl.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h
index c072ee7..260f67b 100644
--- 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); \
-		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