From 194fa6abfa844187b13c20a8aab36af79e59cfb5 Mon Sep 17 00:00:00 2001 From: Milos Milosevic Date: Wed, 19 Oct 2022 17:37:23 +0000 Subject: [PATCH] #463 Fix unused variable son_count_histogram_buffer in Release mode --- libraries/chain/db_maint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/chain/db_maint.cpp b/libraries/chain/db_maint.cpp index f4a1bca5..8673362d 100644 --- a/libraries/chain/db_maint.cpp +++ b/libraries/chain/db_maint.cpp @@ -720,11 +720,11 @@ void database::update_active_sons() } assert( _son_count_histogram_buffer.size() > 0 ); - for( const auto& son_count_histogram_buffer : _son_count_histogram_buffer ){ #ifndef NDEBUG + for( const auto& son_count_histogram_buffer : _son_count_histogram_buffer ){ assert( son_count_histogram_buffer.second.size() > 0 ); -#endif } +#endif const flat_map stake_target = [this]{ flat_map stake_target;