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:
256b5d5
)
Eliminate "statement with no effect" warning when OPENSSL_assert macro
author
Andy Polyakov
<appro@openssl.org>
Sun, 8 May 2005 19:54:33 +0000
(19:54 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Sun, 8 May 2005 19:54:33 +0000
(19:54 +0000)
is used with constant assertion.
crypto/crypto.h
patch
|
blob
|
history
diff --git
a/crypto/crypto.h
b/crypto/crypto.h
index 9582c9af8ca90a4e4605c816fff07d78bc4e4cfe..d2b5ffe3325bcfc7a6b3b82fd81d807ab19490c5 100644
(file)
--- 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()))