Skip to content

Commit 7df2340

Browse files
authored
Merge pull request #2519 from AlexandreSinger/feature-remove-warnings
[NO_GRAPHICS][Warnings] Resolved Unused Variables
2 parents 23535b0 + 4e2c0e4 commit 7df2340

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

vpr/src/draw/draw.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ void init_graphics_state(bool show_graphics_val,
204204
(void)route_type;
205205
(void)save_graphics;
206206
(void)graphics_commands;
207+
(void)is_flat;
207208
#endif // NO_GRAPHICS
208209
}
209210

vpr/src/place/place.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,6 +1711,9 @@ static e_move_result try_swap(const t_annealing_state* state,
17111711
if (manual_move_enabled) {
17121712
#ifndef NO_GRAPHICS
17131713
create_move_outcome = manual_move_display_and_propose(manual_move_generator, blocks_affected, proposed_action.move_type, rlim, placer_opts, criticalities);
1714+
#else //NO_GRAPHICS
1715+
// Cast to void to explicitly avoid warning.
1716+
(void)manual_move_generator;
17141717
#endif //NO_GRAPHICS
17151718
} else if (router_block_move) {
17161719
// generate a move where two random router blocks are swapped

vpr/src/route/route_utilization.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ vtr::Matrix<float> calculate_routing_usage(t_rr_type rr_type, bool is_flat, bool
3636
if (!draw_state->draw_layer_display[layer_num].visible)
3737
continue; // don't count usage if layer is not visible
3838
}
39+
#else
40+
// Cast to void to avoid warning.
41+
(void)is_print;
3942
#endif
4043

4144
if (rr_type == CHANX) {

0 commit comments

Comments
 (0)