Silence unused variable warnings

This commit is contained in:
Daniel J. Hofmann
2015-09-04 18:23:57 +02:00
parent 72c0feb048
commit 17d8e65c64
7 changed files with 11 additions and 3 deletions
+3 -1
View File
@@ -73,6 +73,8 @@ std::vector<NodeID> BruteForceTrip(const NodeIDIterator start,
const std::size_t number_of_locations,
const DistTableWrapper<EdgeWeight> &dist_table)
{
(void)number_of_locations; // unused
const auto component_size = std::distance(start, end);
std::vector<NodeID> perm(start, end);
@@ -103,4 +105,4 @@ std::vector<NodeID> BruteForceTrip(const NodeIDIterator start,
} // end namespace trip
} // end namespace osrm
#endif // TRIP_BRUTE_FORCE_HPP
#endif // TRIP_BRUTE_FORCE_HPP
+1
View File
@@ -54,6 +54,7 @@ GetShortestRoundTrip(const NodeID new_loc,
const std::size_t number_of_locations,
std::vector<NodeID> &route)
{
(void)number_of_locations; // unused
auto min_trip_distance = INVALID_EDGE_WEIGHT;
NodeIDIter next_insert_point_candidate;