]> granicus.if.org Git - openssl/commitdiff
Eliminate "statement with no effect" warning when OPENSSL_assert macro
authorAndy Polyakov <appro@openssl.org>
Sun, 8 May 2005 19:52:13 +0000 (19:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 8 May 2005 19:52:13 +0000 (19:52 +0000)
is used with constant assertion.

crypto/crypto.h

index c77566aa0ea11e581ad926b68bd19de874f52783..22fd939e65e5b2267463aab39d73a2d38b110adf 100644 (file)
@@ -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__, \