Skip to content

Commit 81637b6

Browse files
committed
Initialized enums that might not be assigned depending on NO_GRAPHICS macro.
Signed-off-by: Henner Zeller <[email protected]>
1 parent 90e87dd commit 81637b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vpr/src/place/place.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ static e_move_result try_swap(const t_annealing_state* state,
13361336
crit_params.crit_exponent = state->crit_exponent;
13371337
crit_params.crit_limit = placer_opts.place_crit_limit;
13381338

1339-
e_move_type move_type; //move type number
1339+
e_move_type move_type = e_move_type::UNIFORM; //move type number
13401340

13411341
num_ts_called++;
13421342

@@ -1358,7 +1358,7 @@ static e_move_result try_swap(const t_annealing_state* state,
13581358
rlim = state->rlim;
13591359
}
13601360

1361-
e_create_move create_move_outcome;
1361+
e_create_move create_move_outcome = e_create_move::ABORT;
13621362

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

1376-
e_move_result move_outcome = ABORTED;
1376+
e_move_result move_outcome = e_move_result::ABORTED;
13771377

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

0 commit comments

Comments
 (0)