mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +02:00
Fix clang warning
This commit is contained in:
parent
a949673a5b
commit
b91500a14e
1 changed files with 1 additions and 5 deletions
|
@ -2383,14 +2383,10 @@ void LocalDerivationGoal::registerOutputs()
|
||||||
[&](DerivationOutputCAFloating dof) {
|
[&](DerivationOutputCAFloating dof) {
|
||||||
return newInfoFromCA(dof);
|
return newInfoFromCA(dof);
|
||||||
},
|
},
|
||||||
[&](DerivationOutputDeferred) {
|
[&](DerivationOutputDeferred) -> ValidPathInfo {
|
||||||
// No derivation should reach that point without having been
|
// No derivation should reach that point without having been
|
||||||
// rewritten first
|
// rewritten first
|
||||||
assert(false);
|
assert(false);
|
||||||
// Ugly, but the compiler insists on having this return a value
|
|
||||||
// of type `ValidPathInfo` despite the `assert(false)`, so
|
|
||||||
// let's provide it
|
|
||||||
return *(ValidPathInfo*)0;
|
|
||||||
},
|
},
|
||||||
}, output.output);
|
}, output.output);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue