Skip to content

[NO_GRAPHICS][Warnings] Resolved Unused Variables #2519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions vpr/src/draw/draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ void init_graphics_state(bool show_graphics_val,
(void)route_type;
(void)save_graphics;
(void)graphics_commands;
(void)is_flat;
#endif // NO_GRAPHICS
}

Expand Down
3 changes: 3 additions & 0 deletions vpr/src/place/place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,9 @@ static e_move_result try_swap(const t_annealing_state* state,
if (manual_move_enabled) {
#ifndef NO_GRAPHICS
create_move_outcome = manual_move_display_and_propose(manual_move_generator, blocks_affected, proposed_action.move_type, rlim, placer_opts, criticalities);
#else //NO_GRAPHICS
// Cast to void to explicitly avoid warning.
(void)manual_move_generator;
#endif //NO_GRAPHICS
} else if (router_block_move) {
// generate a move where two random router blocks are swapped
Expand Down
3 changes: 3 additions & 0 deletions vpr/src/route/route_utilization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ vtr::Matrix<float> calculate_routing_usage(t_rr_type rr_type, bool is_flat, bool
if (!draw_state->draw_layer_display[layer_num].visible)
continue; // don't count usage if layer is not visible
}
#else
// Cast to void to avoid warning.
(void)is_print;
#endif

if (rr_type == CHANX) {
Expand Down