Skip to content

Commit

Permalink
Fix unused variable (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
TApplencourt authored Jul 30, 2024
1 parent cbc198a commit 613eb33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xprof/btx_tally.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ template <class... T> void _get_uniq_tally(std::set<std::tuple<T...>> &s, std::v
}
// Exposed function
template <class... T, class K> auto get_uniq_tally(std::unordered_map<std::tuple<T...>, K> &m) {
// Map to Set. Can remove the last elements who is the `api name`
// Map to Set. Can remove the last element who is the `api name`
typedef decltype(make_tuple_without_last(std::declval<std::tuple<T...>>())) Minusone;
std::set<Minusone> s;
for (auto &[k, v] : m)
s.insert(make_tuple_without_last(k));
for (auto &kv : m)
s.insert(make_tuple_without_last(kv.first));
// Get the Tally
std::vector<size_t> v{};
_get_uniq_tally(s, v);
Expand Down

0 comments on commit 613eb33

Please sign in to comment.