aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/content-address.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/content-address.cc')
-rw-r--r--src/libstore/content-address.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc
index 2e6c435ce..3b8a773b7 100644
--- a/src/libstore/content-address.cc
+++ b/src/libstore/content-address.cc
@@ -154,10 +154,16 @@ Hash getContentAddressHash(const ContentAddress & ca)
ContentAddressWithReferences caWithoutRefs(const ContentAddress & ca) {
return std::visit(overloaded {
[&](const TextHash & h) -> ContentAddressWithReferences {
- return TextInfo { h, {}};
+ return TextInfo {
+ h,
+ .references = {},
+ };
},
[&](const FixedOutputHash & h) -> ContentAddressWithReferences {
- return FixedOutputInfo { h, {}};
+ return FixedOutputInfo {
+ h,
+ .references = {},
+ };
},
}, ca);
}