about summary refs log tree commit diff
path: root/src/libexpr/primops/fromTOML.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-07-11T19·05+0200
committerEelco Dolstra <edolstra@gmail.com>2018-07-11T19·05+0200
commitefd04888cad18b76729b39294224ca547d074846 (patch)
treef4c965090c28c8e4e35e8541a9ec1f01687fa86e /src/libexpr/primops/fromTOML.cc
parent875cd9da2b20a7228dd337aa007ae11ef02a220a (diff)
Shup up a warning
Diffstat (limited to 'src/libexpr/primops/fromTOML.cc')
-rw-r--r--src/libexpr/primops/fromTOML.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fromTOML.cc b/src/libexpr/primops/fromTOML.cc
index ae8aba612bb9..12e5de08e51d 100644
--- a/src/libexpr/primops/fromTOML.cc
+++ b/src/libexpr/primops/fromTOML.cc
@@ -20,7 +20,7 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va
         if (auto t2 = t->as_table()) {
 
             size_t size = 0;
-            for (auto & i : *t2) size++;
+            for (auto & i : *t2) { (void) i; size++; }
 
             state.mkAttrs(v, size);