diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-02-28 15:24:24 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-02-28 15:48:26 +0100 |
commit | b91500a14e5f1bab33cd9dccbe9a85ad2832062a (patch) | |
tree | 7933ea05df77b2ba937184acd10943feca4dc816 /src/libstore/build | |
parent | a949673a5b4a08429e9866bc8558e961bb8fe130 (diff) |
Fix clang warning
Diffstat (limited to 'src/libstore/build')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index a2a52e8f9..7e69d4145 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -2383,14 +2383,10 @@ void LocalDerivationGoal::registerOutputs() [&](DerivationOutputCAFloating dof) { return newInfoFromCA(dof); }, - [&](DerivationOutputDeferred) { + [&](DerivationOutputDeferred) -> ValidPathInfo { // No derivation should reach that point without having been // rewritten first 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); |