aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-09-01 14:49:49 +0200
committerEelco Dolstra <edolstra@gmail.com>2023-09-01 14:49:49 +0200
commit5c95b32c461da645826ff6bf248183f066c57b20 (patch)
tree618b84a1fc90251ddea736d6c3441fd5acd2f852 /src/libstore
parent3420b60b3995b1d26da67540950c511ccd5d5996 (diff)
Fix warning 'catching polymorphic type by value'
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build/create-derivation-and-realise-goal.cc2
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)