diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-09-01 14:49:49 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-09-01 14:49:49 +0200 |
commit | 5c95b32c461da645826ff6bf248183f066c57b20 (patch) | |
tree | 618b84a1fc90251ddea736d6c3441fd5acd2f852 /src/libstore/build | |
parent | 3420b60b3995b1d26da67540950c511ccd5d5996 (diff) |
Fix warning 'catching polymorphic type by value'
Diffstat (limited to 'src/libstore/build')
-rw-r--r-- | src/libstore/build/create-derivation-and-realise-goal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/create-derivation-and-realise-goal.cc b/src/libstore/build/create-derivation-and-realise-goal.cc index b01042f00..60f67956d 100644 --- a/src/libstore/build/create-derivation-and-realise-goal.cc +++ b/src/libstore/build/create-derivation-and-realise-goal.cc @@ -96,7 +96,7 @@ void CreateDerivationAndRealiseGoal::getDerivation() auto drvPath = StorePath::dummy; try { drvPath = resolveDerivedPath(worker.store, *drvReq); - } catch (MissingRealisation) { + } catch (MissingRealisation &) { return std::nullopt; } return worker.evalStore.isValidPath(drvPath) || worker.store.isValidPath(drvPath) |