aboutsummaryrefslogtreecommitdiff
path: root/perl/lib
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-01 11:25:56 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-01 11:25:56 -0500
commitee9eb83a842eb97d0180fd9d349d30ff27fdb485 (patch)
tree7b1eaf8ea9dbf5d0fec8cae89e47b57d0d3a9d70 /perl/lib
parent59d3175649a6bbdde76d1dfcf476c11392add827 (diff)
Remove some designated initializers
With the switch to C++20, the rules became more strict, and we can no longer initialize base classes. Make them comments instead. (BTW https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2287r1.html this offers some new syntax for this use-case. Hopefully this will be adopted and we can eventually use it.)
Diffstat (limited to 'perl/lib')
-rw-r--r--perl/lib/Nix/Store.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs
index f19fb20bf..314183383 100644
--- a/perl/lib/Nix/Store.xs
+++ b/perl/lib/Nix/Store.xs
@@ -299,7 +299,7 @@ SV * makeFixedOutputPath(int recursive, char * algo, char * hash, char * name)
.method = method,
.hash = h,
},
- .references = {},
+ /* .references = */ {},
});
XPUSHs(sv_2mortal(newSVpv(store()->printStorePath(path).c_str(), 0)));
} catch (Error & e) {