Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build errors
Browse files Browse the repository at this point in the history
rodiazet committed Feb 6, 2023
1 parent 4d65789 commit ab5b43b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/evmone/errors.hpp
Original file line number Diff line number Diff line change
@@ -29,9 +29,9 @@ inline const std::error_category& evmone_category() noexcept
{
struct evmone_category_impl : std::error_category
{
const char* name() const noexcept final { return "evmone"; }
[[nodiscard]] const char* name() const noexcept final { return "evmone"; }

std::string message(int ev) const noexcept final
[[nodiscard]] std::string message(int ev) const noexcept final
{
switch (ev)
{
@@ -72,7 +72,7 @@ inline const std::error_category& evmone_category() noexcept
/// This is used by std::error_code to implement implicit conversion
/// evmone::ErrorCode -> std::error_code, therefore the definition is
/// in the global namespace to match the definition of ethash_errc.
std::error_code make_error_code(ErrorCode errc) noexcept
inline std::error_code make_error_code(ErrorCode errc) noexcept
{
return {errc, evmone_category()};
}

0 comments on commit ab5b43b

Please sign in to comment.