From e4ed8ce2c848695855bd7fa4d66765d2eac6d255 Mon Sep 17 00:00:00 2001 From: Jim Posen Date: Fri, 21 Dec 2018 23:53:29 -0600 Subject: [PATCH] blockfilter: Remove default clause in switch statement. Now the compiler will warn if not all enums are handled in the switch. --- src/blockfilter.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/blockfilter.cpp b/src/blockfilter.cpp index 379d3ea170a..bcf24047ffd 100644 --- a/src/blockfilter.cpp +++ b/src/blockfilter.cpp @@ -250,13 +250,10 @@ bool BlockFilter::BuildParams(GCSFilter::Params& params) const params.m_siphash_k1 = m_block_hash.GetUint64(1); params.m_P = BASIC_FILTER_P; params.m_M = BASIC_FILTER_M; - break; - - default: - return false; + return true; } - return true; + return false; } uint256 BlockFilter::GetHash() const