aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-12-12 16:41:46 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-12-12 16:41:46 +0100
commit17f81d32152178730e8577caa60279bb86bb9372 (patch)
tree9ff92cdfdf5b2b2e0eef62f7661414c36ed34f2f /src
parent8e8a511aa05a84a40102d22db8de4239d3419f53 (diff)
Fix unused variable warning
Diffstat (limited to 'src')
-rw-r--r--src/nix-store/nix-store.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 96e265f9e..3bbefedbe 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -812,10 +812,13 @@ static void opServe(Strings opFlags, Strings opArgs)
if (nrRepeats != 0) {
throw Error("client requested repeating builds, but this is not currently implemented");
}
- // Ignore. It used to be true by default, but also only never had any effect when `nrRepeats == 0`.
- // We have already asserted that `nrRepeats` in fact is 0, so we can safely ignore this without
- // doing something other than what the client asked for.
- auto _enforceDeterminism = readInt(in);
+ // Ignore 'enforceDeterminism'. It used to be true by
+ // default, but also only never had any effect when
+ // `nrRepeats == 0`. We have already asserted that
+ // `nrRepeats` in fact is 0, so we can safely ignore this
+ // without doing something other than what the client
+ // asked for.
+ readInt(in);
settings.runDiffHook = true;
}