linux: prevent hybrid-mode compiler warnings

This commit is contained in:
Christian Helmuth
2015-05-15 17:35:01 +02:00
parent c934ee1650
commit 140ecb1238
2 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class File_system::File : public Node
void truncate(file_size_t size)
{
ftruncate(_fd, size);
if (ftruncate(_fd, size)) /* nothing */;
mark_as_updated();
}