projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
102e648
)
Eliminate "statement with no effect" warning when OPENSSL_assert macro
author
Andy Polyakov
<appro@openssl.org>
Sun, 8 May 2005 19:52:13 +0000
(19:52 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Sun, 8 May 2005 19:52:13 +0000
(19:52 +0000)
is used with constant assertion.
crypto/crypto.h
patch
|
blob
|
history
diff --git
a/crypto/crypto.h
b/crypto/crypto.h
index c77566aa0ea11e581ad926b68bd19de874f52783..22fd939e65e5b2267463aab39d73a2d38b110adf 100644
(file)
--- a/
crypto/crypto.h
+++ b/
crypto/crypto.h
@@
-434,7
+434,7
@@
void CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB *cb);
/* die if we have to */
void OpenSSLDie(const char *file,int line,const char *assertion);
-#define OPENSSL_assert(e) (
(e) ? (void)0 : OpenSSLDie(__FILE__, __LINE__, #e
))
+#define OPENSSL_assert(e) (
void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1
))
#ifdef OPENSSL_FIPS
#define FIPS_ERROR_IGNORED(alg) OpenSSLDie(__FILE__, __LINE__, \