Skip to content

Commit 64336c8

Browse files
fix compiler warnings
1 parent fa97eef commit 64336c8

File tree

7 files changed

+16
-11
lines changed

7 files changed

+16
-11
lines changed

vpr/src/noc/bfs_routing.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
BFSRouting::~BFSRouting() = default;
66

7-
void BFSRouting::route_flow(NocRouterId src_router_id, NocRouterId sink_router_id, NocTrafficFlowId traffic_flow_id, std::vector<NocLinkId>& flow_route, const NocStorage& noc_model) {
7+
void BFSRouting::route_flow(NocRouterId src_router_id,
8+
NocRouterId sink_router_id,
9+
NocTrafficFlowId /*traffic_flow_id*/,
10+
std::vector<NocLinkId>& flow_route,
11+
const NocStorage& noc_model) {
812
const NocRouter& src_router = noc_model.get_single_noc_router(src_router_id);
913
const NocRouter& sink_router = noc_model.get_single_noc_router(sink_router_id);
1014

vpr/src/noc/bfs_routing.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ class BFSRouting : public NocRouting {
5151
* @param noc_model A model of the NoC. This is used to traverse the
5252
* NoC and find a route between the two routers.
5353
*/
54-
void route_flow(NocRouterId src_router_id, NocRouterId sink_router_id, NocTrafficFlowId traffic_flow_id, std::vector<NocLinkId>& flow_route, const NocStorage& noc_model) override;
54+
void route_flow(NocRouterId src_router_id,
55+
NocRouterId sink_router_id,
56+
NocTrafficFlowId traffic_flow_id,
57+
std::vector<NocLinkId>& flow_route,
58+
const NocStorage& noc_model) override;
5559

5660
// internally used helper functions
5761
private:

vpr/src/noc/negative_first_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
NegativeFirstRouting::~NegativeFirstRouting() = default;
55

6-
const std::vector<TurnModelRouting::Direction>& NegativeFirstRouting::get_legal_directions(NocRouterId src_router_id,
6+
const std::vector<TurnModelRouting::Direction>& NegativeFirstRouting::get_legal_directions(NocRouterId /*src_router_id*/,
77
NocRouterId curr_router_id,
88
NocRouterId dst_router_id,
99
const NocStorage& noc_model) {

vpr/src/noc/north_last_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
NorthLastRouting::~NorthLastRouting() = default;
55

6-
const std::vector<TurnModelRouting::Direction>& NorthLastRouting::get_legal_directions(NocRouterId src_router_id,
6+
const std::vector<TurnModelRouting::Direction>& NorthLastRouting::get_legal_directions(NocRouterId /*src_router_id*/,
77
NocRouterId curr_router_id,
88
NocRouterId dst_router_id,
99
const NocStorage& noc_model) {

vpr/src/noc/turn_model_routing.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ void TurnModelRouting::route_flow(NocRouterId src_router_id,
4040
// the last router added to the path, initialized with the source id
4141
NocRouterId curr_router_id = src_router_id;
4242

43-
// get the physical location of the destination router
44-
const auto dst_loc = dst_router.get_router_physical_location();
45-
4643
/**
4744
* Keeps track of which routers have been reached already
4845
* while traversing the NoC. This variable will help determine

vpr/src/noc/west_first_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
WestFirstRouting::~WestFirstRouting() = default;
44

5-
const std::vector<TurnModelRouting::Direction>& WestFirstRouting::get_legal_directions(NocRouterId src_router_id,
5+
const std::vector<TurnModelRouting::Direction>& WestFirstRouting::get_legal_directions(NocRouterId /*src_router_id*/,
66
NocRouterId curr_router_id,
77
NocRouterId dst_router_id,
88
const NocStorage& noc_model) {

vpr/src/noc/xy_routing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
XYRouting::~XYRouting() = default;
99

10-
const std::vector<TurnModelRouting::Direction>& XYRouting::get_legal_directions(NocRouterId src_router_id,
10+
const std::vector<TurnModelRouting::Direction>& XYRouting::get_legal_directions(NocRouterId /*src_router_id*/,
1111
NocRouterId curr_router_id,
1212
NocRouterId dst_router_id,
1313
const NocStorage& noc_model) {
@@ -31,10 +31,10 @@ const std::vector<TurnModelRouting::Direction>& XYRouting::get_legal_directions(
3131
}
3232

3333
TurnModelRouting::Direction XYRouting::select_next_direction(const std::vector<TurnModelRouting::Direction>& legal_directions,
34-
NocRouterId src_router_id,
34+
NocRouterId /*src_router_id*/,
3535
NocRouterId dst_router_id,
3636
NocRouterId curr_router_id,
37-
NocTrafficFlowId traffic_flow_id,
37+
NocTrafficFlowId /*traffic_flow_id*/,
3838
const NocStorage& noc_model) {
3939
// get current and destination NoC routers
4040
const auto& curr_router = noc_model.get_single_noc_router(curr_router_id);

0 commit comments

Comments
 (0)