aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-14 18:51:31 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-14 18:51:31 +0000
commitf899a7c6d726dbf75e78fce5b5a9aa478387fcbe (patch)
treec4cba2af21578fc76900dfa5765eb474a4d1688a
parent3c8b5b62192b828c392e9122536d666e23278d8e (diff)
Work around clang bug
-rw-r--r--src/nix/show-derivation.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/show-derivation.cc b/src/nix/show-derivation.cc
index cc52e53fb..b9f33499b 100644
--- a/src/nix/show-derivation.cc
+++ b/src/nix/show-derivation.cc
@@ -67,7 +67,8 @@ struct CmdShowDerivation : InstallablesCommand
{
auto outputsObj(drvObj.object("outputs"));
- for (auto & [outputName, output] : drv.outputs) {
+ for (auto & [_outputName, output] : drv.outputs) {
+ auto & outputName = _outputName; // work around clang bug
auto outputObj { outputsObj.object(outputName) };
std::visit(overloaded {
[&](DerivationOutputInputAddressed doi) {