From 903b8feaa70199eb39a313b32a71268745ddb600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Wed, 4 Jan 2017 18:47:04 +0100 Subject: [PATCH] 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. --- trap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trap.h b/trap.h index 91f6e836..91a89a72 100644 --- a/trap.h +++ b/trap.h @@ -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)