aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-10-12 15:53:38 +0200
committerEelco Dolstra <edolstra@gmail.com>2016-10-12 15:53:38 +0200
commit816d3e57248da2ce4976ae9f8334ee467bcd657e (patch)
treedbf19f7a1b6dec6ba10822bd8fac1acf3cc21e92 /src/libstore
parent82e2a070e0d2a617cb47c285e176a3fff3ca64e8 (diff)
Shut up some warnings
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 4f2c433b8..ed5747f31 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -124,7 +124,7 @@ LocalStore::LocalStore(const Params & params)
#endif
if (res == -1) {
writeFull(fd.get(), string(settings.reservedSize, 'X'));
- ftruncate(fd.get(), settings.reservedSize);
+ [[gnu::unused]] auto res2 = ftruncate(fd.get(), settings.reservedSize);
}
}
} catch (SysError & e) { /* don't care about errors */