Shut up some warnings

This commit is contained in:
Eelco Dolstra 2016-10-12 15:53:38 +02:00
parent 82e2a070e0
commit 816d3e5724
2 changed files with 2 additions and 2 deletions

View file

@ -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 */