mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
nar-accessor.cc: Silence unused variable warning
This commit is contained in:
parent
8df041cbc6
commit
27eaeebc41
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue