Fix some build warnings in fish_tests

This commit is contained in:
ridiculousfish 2020-07-12 11:41:06 -07:00
parent 2e5222ffe8
commit 12d0afa929
2 changed files with 3 additions and 3 deletions

View file

@ -1780,7 +1780,7 @@ class test_lru_t : public lru_cache_t<test_lru_t, int> {
std::vector<value_type> values() const {
std::vector<value_type> result;
for (const auto &p : *this) {
for (auto p : *this) {
result.push_back(p);
}
return result;
@ -1788,7 +1788,7 @@ class test_lru_t : public lru_cache_t<test_lru_t, int> {
std::vector<int> ints() const {
std::vector<int> result;
for (const auto &p : *this) {
for (auto p : *this) {
result.push_back(p.second);
}
return result;

View file

@ -318,7 +318,7 @@ class lru_cache_t {
// Count iterators
size_t iter_dist = 0;
for (const auto &p : *this) {
for (auto p : *this) {
UNUSED(p);
iter_dist++;
}