mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Merge pull request #11953 from DeterminateSystems/fix-warning
Work around gcc warning
This commit is contained in:
commit
4fc5295328
1 changed files with 3 additions and 2 deletions
|
@ -643,10 +643,11 @@ struct CmdFlakeCheck : FlakeCommand
|
|||
fmt("%s.%s.%s", name, attr_name, state->symbols[attr2.name]),
|
||||
*attr2.value, attr2.pos);
|
||||
if (drvPath && attr_name == settings.thisSystem.get()) {
|
||||
drvPaths.push_back(DerivedPath::Built {
|
||||
auto path = DerivedPath::Built {
|
||||
.drvPath = makeConstantStorePathRef(*drvPath),
|
||||
.outputs = OutputsSpec::All { },
|
||||
});
|
||||
};
|
||||
drvPaths.push_back(std::move(path));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue