summaryrefslogtreecommitdiffstats
path: root/crypto/crypto.h
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-05-08 19:54:33 +0000
committerAndy Polyakov <appro@openssl.org>2005-05-08 19:54:33 +0000
commitb6223d2f701655d9f98fa1cdcf992967c89b443b (patch)
tree14c435be4253f23a0b983b36058b76b0dde4306c /crypto/crypto.h
parent256b5d5877e1c8f7c5d8b6cd9787be12dcf456a3 (diff)
Eliminate "statement with no effect" warning when OPENSSL_assert macro
is used with constant assertion.
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r--crypto/crypto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h
index 9582c9af8c..d2b5ffe332 100644
--- a/crypto/crypto.h
+++ b/crypto/crypto.h
@@ -517,7 +517,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))
unsigned long *OPENSSL_ia32cap_loc(void);
#define OPENSSL_ia32cap (*(OPENSSL_ia32cap_loc()))