aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-21 10:29:51 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-01-21 10:29:51 +0100
commit259100332f96250d6615d5839f6a77798c77aefb (patch)
tree914c7e85308a9145303527d937a0d1107bdde7d2
parentd04d8463faba97164f21fc64780574561a954555 (diff)
Fix clang build
-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;