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
Paweł Bylica 2017-01-04 18:47:04 +01:00 committed by GitHub
parent 9cc01defde
commit 903b8feaa7
1 changed files with 1 additions and 1 deletions

2
trap.h
View File

@ -89,7 +89,7 @@
// Remove CRYPTOPP_ASSERT in non-debug builds.
// Can't use CRYPTOPP_UNUSED due to circular dependency
#ifndef CRYPTOPP_ASSERT
# define CRYPTOPP_ASSERT(exp)
# define CRYPTOPP_ASSERT(exp) (void)0
#endif
NAMESPACE_BEGIN(CryptoPP)