mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
nar-accessor.cc: Silence unused variable warning
This commit is contained in:
parent
8df041cbc6
commit
27eaeebc41
@ -73,7 +73,10 @@ struct NarAccessor : public SourceAccessor
|
||||
NarMember & createMember(const CanonPath & path, NarMember member)
|
||||
{
|
||||
size_t level = 0;
|
||||
for (auto _ : path) ++level;
|
||||
for (auto _ : path) {
|
||||
(void)_;
|
||||
++level;
|
||||
}
|
||||
|
||||
while (parents.size() > level) parents.pop();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user