Skip to content

Commit

Permalink
Merge pull request #2187 from hzeller/20221103-initialize-enums
Browse files Browse the repository at this point in the history
Initialized enums that might not be assigned depending on NO_GRAPHICS macro
  • Loading branch information
vaughnbetz authored Apr 28, 2023
2 parents 2840290 + 2fec151 commit b86ab99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vpr/src/place/place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ static e_move_result try_swap(const t_annealing_state* state,
crit_params.crit_exponent = state->crit_exponent;
crit_params.crit_limit = placer_opts.place_crit_limit;

e_move_type move_type; //move type number
e_move_type move_type = e_move_type::UNIFORM; //move type number

num_ts_called++;

Expand Down Expand Up @@ -1462,7 +1462,7 @@ static e_move_result try_swap(const t_annealing_state* state,
rlim = state->rlim;
}

e_create_move create_move_outcome;
e_create_move create_move_outcome = e_create_move::ABORT;

//When manual move toggle button is active, the manual move window asks the user for input.
if (manual_move_enabled) {
Expand All @@ -1481,7 +1481,7 @@ static e_move_result try_swap(const t_annealing_state* state,
++move_type_stat.num_moves[(int)move_type];
LOG_MOVE_STATS_PROPOSED(t, blocks_affected);

e_move_result move_outcome = ABORTED;
e_move_result move_outcome = e_move_result::ABORTED;

if (create_move_outcome == e_create_move::ABORT) {
LOG_MOVE_STATS_OUTCOME(std::numeric_limits<float>::quiet_NaN(),
Expand Down

0 comments on commit b86ab99

Please sign in to comment.