From ff7d92c7310c47ab6c003e3a30ffa7cad55b5166 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Tue, 11 Jun 2024 20:33:20 +0200 Subject: [PATCH] Disable debug checks in release builds --- src/common.h | 3 +-- src/pool_block.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common.h b/src/common.h index 90355c3..804c696 100644 --- a/src/common.h +++ b/src/common.h @@ -92,8 +92,7 @@ #define __has_feature(x) 0 #endif -// TODO set it to 0 before release -#if 1//defined(_DEBUG) || defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer) || defined(__SANITIZE_THREAD__) || __has_feature(thread_sanitizer) +#if defined(_DEBUG) || defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer) || defined(__SANITIZE_THREAD__) || __has_feature(thread_sanitizer) #define P2POOL_DEBUGGING 1 #endif diff --git a/src/pool_block.h b/src/pool_block.h index 0361fce..c8c047a 100644 --- a/src/pool_block.h +++ b/src/pool_block.h @@ -23,8 +23,7 @@ #ifdef _DEBUG #define POOL_BLOCK_DEBUG 1 #else -// TODO set it to 0 before release -#define POOL_BLOCK_DEBUG 1 +#define POOL_BLOCK_DEBUG 0 #endif namespace p2pool {