Skip to content

Commit b91500a

Browse files
committed
Fix clang warning
1 parent a949673 commit b91500a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libstore/build/local-derivation-goal.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,14 +2383,10 @@ void LocalDerivationGoal::registerOutputs()
23832383
[&](DerivationOutputCAFloating dof) {
23842384
return newInfoFromCA(dof);
23852385
},
2386-
[&](DerivationOutputDeferred) {
2386+
[&](DerivationOutputDeferred) -> ValidPathInfo {
23872387
// No derivation should reach that point without having been
23882388
// rewritten first
23892389
assert(false);
2390-
// Ugly, but the compiler insists on having this return a value
2391-
// of type `ValidPathInfo` despite the `assert(false)`, so
2392-
// let's provide it
2393-
return *(ValidPathInfo*)0;
23942390
},
23952391
}, output.output);
23962392

0 commit comments

Comments
 (0)