nar-accessor.cc: Silence unused variable warning

This commit is contained in:
Robert Hensing 2024-07-12 15:38:17 +02:00
parent 8df041cbc6
commit 27eaeebc41

View file

@ -73,7 +73,10 @@ struct NarAccessor : public SourceAccessor
NarMember & createMember(const CanonPath & path, NarMember member) NarMember & createMember(const CanonPath & path, NarMember member)
{ {
size_t level = 0; size_t level = 0;
for (auto _ : path) ++level; for (auto _ : path) {
(void)_;
++level;
}
while (parents.size() > level) parents.pop(); while (parents.size() > level) parents.pop();