From eb1c5d090f4ef844dabc1e8bf3864c1afe1c791c Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Thu, 20 Aug 2020 15:26:27 -0700 Subject: [doc] Follow developer notes, add comment about missing default. --- src/net.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index 30abd3813d..60c3dc6aef 100644 --- a/src/net.h +++ b/src/net.h @@ -874,7 +874,7 @@ public: case ConnectionType::ADDR_FETCH: case ConnectionType::FEELER: return false; - } + } // no default case, so the compiler can warn about missing cases assert(false); } @@ -919,7 +919,7 @@ public: case ConnectionType::BLOCK_RELAY: case ConnectionType::ADDR_FETCH: return true; - } + } // no default case, so the compiler can warn about missing cases assert(false); } -- cgit v1.2.3