diff --git a/test/state/state.cpp b/test/state/state.cpp index 81955a3b7b..da04172e76 100644 --- a/test/state/state.cpp +++ b/test/state/state.cpp @@ -285,7 +285,7 @@ void State::rollback(size_t checkpoint) StateDiff State::build_diff() { StateDiff d; - for (const auto& e : m_journal) + for (const auto& ee : m_journal) { std::visit( [&d, this](const auto& e) { @@ -336,7 +336,7 @@ StateDiff State::build_diff() static_assert(std::is_void_v, "unhandled journal entry type"); } }, - e); + ee); } return d; } diff --git a/test/statetest/statetest_runner.cpp b/test/statetest/statetest_runner.cpp index 915b79c565..94cda41617 100644 --- a/test/statetest/statetest_runner.cpp +++ b/test/statetest/statetest_runner.cpp @@ -9,7 +9,7 @@ namespace evmone::test { -std::string print_state(const TestState& s) +static std::string print_state(const TestState& s) { std::stringstream out; const std::map ordered(