0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00

[doc] Follow developer notes, add comment about missing default.

This commit is contained in:
Amiti Uttarwar 2020-08-20 15:26:27 -07:00
parent d5a57cef62
commit eb1c5d090f
2 changed files with 3 additions and 3 deletions

View file

@ -1852,7 +1852,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
case ConnectionType::ADDR_FETCH: case ConnectionType::ADDR_FETCH:
case ConnectionType::FEELER: case ConnectionType::FEELER:
setConnected.insert(pnode->addr.GetGroup(addrman.m_asmap)); setConnected.insert(pnode->addr.GetGroup(addrman.m_asmap));
} } // no default case, so the compiler can warn about missing cases
} }
} }

View file

@ -874,7 +874,7 @@ public:
case ConnectionType::ADDR_FETCH: case ConnectionType::ADDR_FETCH:
case ConnectionType::FEELER: case ConnectionType::FEELER:
return false; return false;
} } // no default case, so the compiler can warn about missing cases
assert(false); assert(false);
} }
@ -919,7 +919,7 @@ public:
case ConnectionType::BLOCK_RELAY: case ConnectionType::BLOCK_RELAY:
case ConnectionType::ADDR_FETCH: case ConnectionType::ADDR_FETCH:
return true; return true;
} } // no default case, so the compiler can warn about missing cases
assert(false); assert(false);
} }