Skip to content

Commit 765fbef

Browse files
authored
Fix missing override and unhandled enum case warnings (#5039)
1 parent 54a8196 commit 765fbef

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

nano/node/ipc/ipc_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class session final : public nano::ipc::socket_base, public std::enable_shared_f
404404
}
405405

406406
/** Shut down and close socket. This is also called if the timer expires. */
407-
void close ()
407+
void close () override
408408
{
409409
boost::system::error_code ec_ignored;
410410
socket.shutdown (boost::asio::ip::tcp::socket::shutdown_both, ec_ignored);

nano/store/rocksdb/backend_rocksdb.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ bool backend_rocksdb::count_is_exact (nano::store::table table) const
360360
case nano::store::table::pending:
361361
case nano::store::table::vote:
362362
case nano::store::table::rep_weights:
363+
case nano::store::table::successor:
363364
case nano::store::table::unchecked:
364365
case nano::store::table::frontiers:
365366
// These tables use iteration for exact counts (may be slow)

0 commit comments

Comments
 (0)