aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net.cpp2
-rw-r--r--src/net.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 262197117d..f483f9922f 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1852,7 +1852,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
case ConnectionType::ADDR_FETCH:
case ConnectionType::FEELER:
setConnected.insert(pnode->addr.GetGroup(addrman.m_asmap));
- }
+ } // no default case, so the compiler can warn about missing cases
}
}
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);
}