mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
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:
parent
97f756b12c
commit
faa3d4f1d8
@ -11,13 +11,6 @@
|
|||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <limits>
|
#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).
|
// Assumption: We assume a C++17 (ISO/IEC 14882:2017) compiler (minimum requirement).
|
||||||
// Example(s): We assume the presence of C++17 features everywhere :-)
|
// Example(s): We assume the presence of C++17 features everywhere :-)
|
||||||
// ISO Standard C++17 [cpp.predefined]p1:
|
// ISO Standard C++17 [cpp.predefined]p1:
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
#include <hash.h>
|
#include <hash.h>
|
||||||
#include <headerssync.h>
|
#include <headerssync.h>
|
||||||
#include <index/blockfilterindex.h>
|
#include <index/blockfilterindex.h>
|
||||||
|
#include <kernel/chain.h>
|
||||||
#include <kernel/mempool_entry.h>
|
#include <kernel/mempool_entry.h>
|
||||||
#include <logging.h>
|
#include <logging.h>
|
||||||
#include <kernel/chain.h>
|
|
||||||
#include <merkleblock.h>
|
#include <merkleblock.h>
|
||||||
#include <netbase.h>
|
#include <netbase.h>
|
||||||
#include <netmessagemaker.h>
|
#include <netmessagemaker.h>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
#include <txmempool.h>
|
#include <txmempool.h>
|
||||||
#include <txorphanage.h>
|
#include <txorphanage.h>
|
||||||
#include <txrequest.h>
|
#include <txrequest.h>
|
||||||
#include <util/check.h> // For NDEBUG compile time check
|
#include <util/check.h>
|
||||||
#include <util/strencodings.h>
|
#include <util/strencodings.h>
|
||||||
#include <util/trace.h>
|
#include <util/trace.h>
|
||||||
#include <validation.h>
|
#include <validation.h>
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#include <txmempool.h>
|
#include <txmempool.h>
|
||||||
#include <uint256.h>
|
#include <uint256.h>
|
||||||
#include <undo.h>
|
#include <undo.h>
|
||||||
#include <util/check.h> // For NDEBUG compile time check
|
#include <util/check.h>
|
||||||
#include <util/fs.h>
|
#include <util/fs.h>
|
||||||
#include <util/fs_helpers.h>
|
#include <util/fs_helpers.h>
|
||||||
#include <util/hasher.h>
|
#include <util/hasher.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user