Skip to content

Commit c16faeb

Browse files
committed
comment unused parameters to remove the warning
1 parent 8e423d6 commit c16faeb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,11 @@ static vtr::vector<ClusterBlockId, t_block_score> assign_block_scores() {
927927
return block_scores;
928928
}
929929

930+
#ifdef VTR_ENABLE_DEBUG_LOGGING
930931
static void place_all_blocks(const t_placer_opts& placer_opts, vtr::vector<ClusterBlockId, t_block_score>& block_scores, enum e_pad_loc_type pad_loc_type, const char* constraints_file) {
932+
#else
933+
static void place_all_blocks(const t_placer_opts& /* placer_opts */, vtr::vector<ClusterBlockId, t_block_score>& block_scores, enum e_pad_loc_type pad_loc_type, const char* constraints_file) {
934+
#endif
931935
auto& cluster_ctx = g_vpr_ctx.clustering();
932936
auto& place_ctx = g_vpr_ctx.placement();
933937
auto& device_ctx = g_vpr_ctx.device();

vpr/src/place/move_utils.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,19 @@ void enable_placer_debug(const t_placer_opts& placer_opts,
547547
}
548548
#endif
549549

550+
#ifdef VTR_ENABLE_DEBUG_LOGGING
550551
ClusterBlockId propose_block_to_move(const t_placer_opts& placer_opts,
551552
int& logical_blk_type_index,
552553
bool highly_crit_block,
553554
ClusterNetId* net_from,
554555
int* pin_from) {
556+
#else
557+
ClusterBlockId propose_block_to_move(const t_placer_opts& /* placer_opts */,
558+
int& logical_blk_type_index,
559+
bool highly_crit_block,
560+
ClusterNetId* net_from,
561+
int* pin_from) {
562+
#endif
555563
ClusterBlockId b_from = ClusterBlockId::INVALID();
556564
auto& cluster_ctx = g_vpr_ctx.clustering();
557565

0 commit comments

Comments
 (0)