From e4ed8ce2c848695855bd7fa4d66765d2eac6d255 Mon Sep 17 00:00:00 2001 From: Jim Posen Date: Fri, 21 Dec 2018 23:53:29 -0600 Subject: 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 379d3ea170..bcf24047ff 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 -- cgit v1.2.3