1
0
Fork 0
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:
John Ericson 2024-11-25 10:40:06 -05:00 committed by GitHub
commit 4fc5295328
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));
}
}
}