Skip to content

Commit

Permalink
updates for g++11
Browse files Browse the repository at this point in the history
  • Loading branch information
Sriram Sundararajan committed Jan 15, 2025
1 parent 2dcd887 commit 907dab9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/tsm_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct Transition : BaseTransition<From, Event, To> {
};

struct ClockTickEvent {
int ticks_;
int ticks_{0};
};

template<typename From,
Expand Down
4 changes: 2 additions & 2 deletions test/test_hsm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ TEST_CASE("Test SingleThreadedExecutionPolicy") {
auto current_hsm = std::get<EmergencyOverrideHsm*>(hsm.current_state_);
REQUIRE(std::holds_alternative<TrafficLight::EmergencyOverrideContext::G1*>(
current_hsm->current_state_));
ClockTickEvent tick;
ClockTickEvent tick{};
for (int i = 0; i < 5; i++) {
hsm.send_event(tick);
}
Expand Down Expand Up @@ -363,7 +363,7 @@ TEST_CASE("Test RealtimeExecutionPolicy") {
auto current_hsm = std::get<EmergencyOverrideHsm*>(hsm.current_state_);
REQUIRE(std::holds_alternative<TrafficLight::EmergencyOverrideContext::G1*>(
current_hsm->current_state_));
ClockTickEvent tick;
ClockTickEvent tick{};
for (int i = 0; i < 5; i++) {
hsm.send_event(tick);
}
Expand Down

0 comments on commit 907dab9

Please sign in to comment.