Skip to content

Commit 596f060

Browse files
committed
Fix some compile warnings for now.
Signed-off-by: Keith Rothman <[email protected]>
1 parent 9c6de94 commit 596f060

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

vpr/src/place/timing_place_lookup.cpp

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ struct t_profile_info {
6868
static t_chan_width setup_chan_width(const t_router_opts& router_opts,
6969
t_chan_width_dist chan_width_dist);
7070

71+
#if 0
7172
static float route_connection_delay(
7273
const RouterDelayProfiler& route_profiler,
7374
int source_x_loc,
@@ -89,6 +90,7 @@ static void generic_compute_matrix(
8990
const t_router_opts& router_opts,
9091
bool measure_directconnect,
9192
const std::set<std::string>& allowed_types);
93+
#endif
9294

9395
static void generic_compute_matrix_expand(
9496
const RouterDelayProfiler& route_profiler,
@@ -294,6 +296,7 @@ static t_chan_width setup_chan_width(const t_router_opts& router_opts,
294296
return init_chan(width_fac, chan_width_dist);
295297
}
296298

299+
#if 0
297300
static float route_connection_delay(
298301
const RouterDelayProfiler& route_profiler,
299302
int source_x,
@@ -352,6 +355,7 @@ static float route_connection_delay(
352355

353356
return (net_delay_value);
354357
}
358+
#endif
355359

356360
static void add_delay_to_matrix(
357361
vtr::Matrix<std::vector<float>>* matrix,
@@ -368,7 +372,7 @@ static void add_delay_to_matrix(
368372
}
369373

370374
static void generic_compute_matrix_expand(
371-
const RouterDelayProfiler& route_profiler,
375+
const RouterDelayProfiler& /*route_profiler*/,
372376
vtr::Matrix<std::vector<float>>& matrix,
373377
int source_x,
374378
int source_y,
@@ -498,6 +502,7 @@ static void generic_compute_matrix_expand(
498502
}
499503
}
500504

505+
#if 0
501506
static void generic_compute_matrix(
502507
const RouterDelayProfiler& route_profiler,
503508
vtr::Matrix<std::vector<float>>& matrix,
@@ -532,26 +537,26 @@ static void generic_compute_matrix(
532537
if (matrix[delta_x][delta_y].empty()) {
533538
//Only set empty target if we don't already have a valid delta delay
534539
matrix[delta_x][delta_y].push_back(EMPTY_DELTA);
535-
#ifdef VERBOSE
540+
# ifdef VERBOSE
536541
VTR_LOG("Computed delay: %12s delta: %d,%d (src: %d,%d sink: %d,%d)\n",
537542
"EMPTY",
538543
delta_x, delta_y,
539544
source_x, source_y,
540545
sink_x, sink_y);
541-
#endif
546+
# endif
542547
}
543548
} else {
544549
//Valid start/end
545550

546551
float delay = route_connection_delay(route_profiler, source_x, source_y, sink_x, sink_y, router_opts, measure_directconnect);
547552

548-
#ifdef VERBOSE
553+
# ifdef VERBOSE
549554
VTR_LOG("Computed delay: %12g delta: %d,%d (src: %d,%d sink: %d,%d)\n",
550555
delay,
551556
delta_x, delta_y,
552557
source_x, source_y,
553558
sink_x, sink_y);
554-
#endif
559+
# endif
555560
if (matrix[delta_x][delta_y].size() == 1 && matrix[delta_x][delta_y][0] == EMPTY_DELTA) {
556561
//Overwrite empty delta
557562
matrix[delta_x][delta_y][0] = delay;
@@ -563,6 +568,7 @@ static void generic_compute_matrix(
563568
}
564569
}
565570
}
571+
#endif
566572

567573
static vtr::Matrix<float> compute_delta_delays(
568574
const RouterDelayProfiler& route_profiler,

0 commit comments

Comments
 (0)