diff options
-rw-r--r-- | src/.clang-tidy | 13 | ||||
-rw-r--r-- | src/netaddress.cpp | 3 | ||||
-rw-r--r-- | src/randomenv.cpp | 3 |
3 files changed, 12 insertions, 7 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy index fda95967f5..b1f543f610 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -1,2 +1,11 @@ -Checks: '-*,bugprone-argument-comment,modernize-use-nullptr' -WarningsAsErrors: 'bugprone-argument-comment,modernize-use-nullptr' +Checks: ' +-*, +bugprone-argument-comment, +modernize-use-nullptr, +readability-redundant-declaration, +' +WarningsAsErrors: ' +bugprone-argument-comment, +modernize-use-nullptr, +readability-redundant-declaration, +' diff --git a/src/netaddress.cpp b/src/netaddress.cpp index 7bf11a3e48..9717f7abce 100644 --- a/src/netaddress.cpp +++ b/src/netaddress.cpp @@ -20,9 +20,6 @@ #include <iterator> #include <tuple> -constexpr size_t CNetAddr::V1_SERIALIZATION_SIZE; -constexpr size_t CNetAddr::MAX_ADDRV2_SIZE; - CNetAddr::BIP155Network CNetAddr::GetBIP155Network() const { switch (m_net) { diff --git a/src/randomenv.cpp b/src/randomenv.cpp index 53ebeb31cd..c5dca346d6 100644 --- a/src/randomenv.cpp +++ b/src/randomenv.cpp @@ -57,8 +57,7 @@ #include <sys/auxv.h> #endif -//! Necessary on some platforms -extern char** environ; +extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms namespace { |