Remove duplicate NDEBUG check from compat/assumptions.h

The check is already done in util/check.h, which is more widely
included.
This commit is contained in:
MarcoFalke 2023-10-04 11:06:24 +02:00
parent 97f756b12c
commit faa3d4f1d8
No known key found for this signature in database
3 changed files with 3 additions and 10 deletions

View File

@ -11,13 +11,6 @@
#include <cstddef>
#include <limits>
// Assumption: We assume that the macro NDEBUG is not defined.
// Example(s): We use assert(...) extensively with the assumption of it never
// being a noop at runtime.
#if defined(NDEBUG)
# error "Bitcoin cannot be compiled without assertions."
#endif
// Assumption: We assume a C++17 (ISO/IEC 14882:2017) compiler (minimum requirement).
// Example(s): We assume the presence of C++17 features everywhere :-)
// ISO Standard C++17 [cpp.predefined]p1:

View File

@ -16,9 +16,9 @@
#include <hash.h>
#include <headerssync.h>
#include <index/blockfilterindex.h>
#include <kernel/chain.h>
#include <kernel/mempool_entry.h>
#include <logging.h>
#include <kernel/chain.h>
#include <merkleblock.h>
#include <netbase.h>
#include <netmessagemaker.h>
@ -39,7 +39,7 @@
#include <txmempool.h>
#include <txorphanage.h>
#include <txrequest.h>
#include <util/check.h> // For NDEBUG compile time check
#include <util/check.h>
#include <util/strencodings.h>
#include <util/trace.h>
#include <validation.h>

View File

@ -47,7 +47,7 @@
#include <txmempool.h>
#include <uint256.h>
#include <undo.h>
#include <util/check.h> // For NDEBUG compile time check
#include <util/check.h>
#include <util/fs.h>
#include <util/fs_helpers.h>
#include <util/hasher.h>