From bb4672342efce7fae1cfd30e007c6835a25286a7 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Fri, 1 Dec 2023 01:07:18 +0100 Subject: [PATCH] remove VERIFY_SETUP define This define was seemingly introduced for VERIFY mode code with side effects (for setup purposes), that should just be executed without any checks. The same can be achieved by putting it in an `#if VERIFY` block, so we can remove it. --- src/util.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/util.h b/src/util.h index 1f1f92c99..187bf1c5e 100644 --- a/src/util.h +++ b/src/util.h @@ -135,10 +135,8 @@ static const secp256k1_callback default_error_callback = { /* Like assert(), but when VERIFY is defined. */ #if defined(VERIFY) #define VERIFY_CHECK CHECK -#define VERIFY_SETUP(stmt) do { stmt; } while(0) #else #define VERIFY_CHECK(cond) -#define VERIFY_SETUP(stmt) #endif static SECP256K1_INLINE void *checked_malloc(const secp256k1_callback* cb, size_t size) {