tidy: add readability-redundant-declaration

This commit is contained in:
fanquake
2022-05-01 10:39:40 +01:00
parent 5d53cf3878
commit c2b295881f
3 changed files with 12 additions and 7 deletions

View File

@@ -1,2 +1,11 @@
Checks: '-*,bugprone-argument-comment,modernize-use-nullptr' Checks: '
WarningsAsErrors: 'bugprone-argument-comment,modernize-use-nullptr' -*,
bugprone-argument-comment,
modernize-use-nullptr,
readability-redundant-declaration,
'
WarningsAsErrors: '
bugprone-argument-comment,
modernize-use-nullptr,
readability-redundant-declaration,
'

View File

@@ -20,9 +20,6 @@
#include <iterator> #include <iterator>
#include <tuple> #include <tuple>
constexpr size_t CNetAddr::V1_SERIALIZATION_SIZE;
constexpr size_t CNetAddr::MAX_ADDRV2_SIZE;
CNetAddr::BIP155Network CNetAddr::GetBIP155Network() const CNetAddr::BIP155Network CNetAddr::GetBIP155Network() const
{ {
switch (m_net) { switch (m_net) {

View File

@@ -57,8 +57,7 @@
#include <sys/auxv.h> #include <sys/auxv.h>
#endif #endif
//! Necessary on some platforms extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms
extern char** environ;
namespace { namespace {