mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Fix some build warnings in fish_tests
This commit is contained in:
parent
2e5222ffe8
commit
12d0afa929
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue