Skip to content

Commit

Permalink
Address compiler complaint.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Jan 26, 2023
1 parent 6a78420 commit 32dea05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nano/node/block_pipeline/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ nano::account nano::block_pipeline::context::account () const
debug_assert (false);
break;
}
// std::unreachable (); c++23
return 1; // Return an account that cannot be signed for.
}

nano::block_hash nano::block_pipeline::context::source () const
Expand All @@ -58,6 +60,8 @@ nano::block_hash nano::block_pipeline::context::source () const
case nano::block_type::invalid:
return 0;
}
debug_assert (false);
return 0;
}

nano::account nano::block_pipeline::context::signer (nano::epochs const & epochs) const
Expand Down Expand Up @@ -95,6 +99,8 @@ nano::account nano::block_pipeline::context::signer (nano::epochs const & epochs
debug_assert (false);
break;
}
// std::unreachable (); c++23
return 1; // Return an account that cannot be signed for.
}

bool nano::block_pipeline::context::gap_previous () const
Expand Down

0 comments on commit 32dea05

Please sign in to comment.