Replace assert with void instruction
In release builds replace assert with void instruction `(void)0`. Otherwise in some places you will end up with statements like `if (...) ;` and some compiler will complain about it.pull/356/head
parent
9cc01defde
commit
903b8feaa7
2
trap.h
2
trap.h
|
|
@ -89,7 +89,7 @@
|
||||||
// Remove CRYPTOPP_ASSERT in non-debug builds.
|
// Remove CRYPTOPP_ASSERT in non-debug builds.
|
||||||
// Can't use CRYPTOPP_UNUSED due to circular dependency
|
// Can't use CRYPTOPP_UNUSED due to circular dependency
|
||||||
#ifndef CRYPTOPP_ASSERT
|
#ifndef CRYPTOPP_ASSERT
|
||||||
# define CRYPTOPP_ASSERT(exp)
|
# define CRYPTOPP_ASSERT(exp) (void)0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NAMESPACE_BEGIN(CryptoPP)
|
NAMESPACE_BEGIN(CryptoPP)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue