aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nix/build.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc
index 45f63bb7e..724ce9d79 100644
--- a/src/nix/build.cc
+++ b/src/nix/build.cc
@@ -58,7 +58,8 @@ struct CmdBuild : InstallablesCommand, MixDryRun, MixJSON, MixProfile
if (outLink != "")
if (auto store2 = store.dynamic_pointer_cast<LocalFSStore>())
- for (const auto & [i, buildable] : enumerate(buildables)) {
+ for (const auto & [_i, buildable] : enumerate(buildables)) {
+ auto i = _i;
std::visit(overloaded {
[&](BuildableOpaque bo) {
std::string symlink = outLink;